mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-16 11:30:34 +01:00
bug fix
This commit is contained in:
parent
7d56e25123
commit
89b4b0c9ec
@ -13,7 +13,7 @@ android {
|
||||
targetSdkVersion 33
|
||||
versionCode 89
|
||||
versionName '3.2.2'
|
||||
resConfigs 'en', 'de-rDE', 'zh-rCN'
|
||||
resConfigs 'en', 'es', 'de-rDE', 'zh-rCN'
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
@ -18,7 +18,8 @@ public class FilterUpdate implements Serializable {
|
||||
private String title = "";
|
||||
private String[] keyWordStr = {};
|
||||
private long[] keywordIds = {};
|
||||
private int expires_at = 0, action = Filter.ACTION_WARN;
|
||||
private int expires_at = 0;
|
||||
private int action = Filter.ACTION_WARN;
|
||||
private boolean filterHome = false;
|
||||
private boolean filterNotification = false;
|
||||
private boolean filterPublic = true;
|
||||
@ -37,16 +38,17 @@ public class FilterUpdate implements Serializable {
|
||||
* @param filter existing filter
|
||||
*/
|
||||
public FilterUpdate(Filter filter) {
|
||||
int expires_at = (int) (filter.getExpirationTime() - System.currentTimeMillis());
|
||||
Keyword[] keywords = filter.getKeywords();
|
||||
id = filter.getId();
|
||||
title = filter.getTitle();
|
||||
Keyword[] keywords = filter.getKeywords();
|
||||
action = filter.getAction();
|
||||
keyWordStr = new String[keywords.length];
|
||||
keywordIds = new long[keywords.length];
|
||||
for (int i = 0 ; i < keywords.length ; i++) {
|
||||
keywordIds[i] = keywords[i].getId();
|
||||
keyWordStr[i] = keywords[i].getKeyword();
|
||||
}
|
||||
int expires_at = (int) (filter.getExpirationTime() - System.currentTimeMillis());
|
||||
if (expires_at > 0) {
|
||||
this.expires_at = expires_at;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user