File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/src/main/java/com/addev/listaspam/util Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,16 @@ fun shouldFilterWithListaSpamApi(context: Context): Boolean {
2727 return sharedPreferences.getBoolean(" pref_filter_lista_spam_api" , true )
2828}
2929
30+ fun getListaSpamApiLang (context : Context ): String? {
31+ val sharedPreferences = PreferenceManager .getDefaultSharedPreferences(context)
32+ return sharedPreferences.getString(" pref_language" , null )?.uppercase()
33+ }
34+
35+ fun setListaSpamApiLang (context : Context , languageCode : String ) {
36+ val sharedPreferences = PreferenceManager .getDefaultSharedPreferences(context)
37+ sharedPreferences.edit().putString(" pref_language" , languageCode.uppercase()).apply ()
38+ }
39+
3040fun shouldFilterWithListaSpamScraper (context : Context ): Boolean {
3141 val sharedPreferences = PreferenceManager .getDefaultSharedPreferences(context)
3242 return sharedPreferences.getBoolean(" pref_filter_lista_spam_scraper" , false )
You can’t perform that action at this time.
0 commit comments