|
|
@ -10,7 +10,6 @@ import android.content.Intent; |
|
|
|
import android.content.ServiceConnection; |
|
|
|
import android.content.res.TypedArray; |
|
|
|
import android.database.MatrixCursor; |
|
|
|
import android.net.IpSecManager; |
|
|
|
import android.net.Uri; |
|
|
|
import android.os.AsyncTask; |
|
|
|
import android.os.Build; |
|
|
@ -84,7 +83,7 @@ import awais.instagrabber.utils.TextUtils; |
|
|
|
import awais.instagrabber.utils.Utils; |
|
|
|
import awais.instagrabber.utils.emoji.EmojiParser; |
|
|
|
import awais.instagrabber.viewmodels.AppStateViewModel; |
|
|
|
import zerrium.FilterKeywords; |
|
|
|
import zerrium.FilterKeywordsUtility; |
|
|
|
|
|
|
|
import static awais.instagrabber.utils.NavigationExtensions.setupWithNavController; |
|
|
|
import static awais.instagrabber.utils.Utils.settingsHelper; |
|
|
@ -180,14 +179,11 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage |
|
|
|
} |
|
|
|
|
|
|
|
private void initZerriumFilter(){ |
|
|
|
boolean filter_result = false; |
|
|
|
try{ |
|
|
|
filter_result = FilterKeywords.insert(getResources().getStringArray(R.array.filter_keyword)); |
|
|
|
FilterKeywordsUtility.insert(getResources().getStringArray(R.array.filter_keyword)); |
|
|
|
}catch(Exception e){ |
|
|
|
Log.e(TAG, "initZerriumFilter: " + e); |
|
|
|
} |
|
|
|
if(!filter_result) Log.d(TAG, "ZerriumFilter insert failed"); |
|
|
|
else Log.d(TAG, "ZerriumFilter insert success"); |
|
|
|
} |
|
|
|
|
|
|
|
private void initDmService() { |
|
|
|