mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Remove option 'Download content only via Wifi' for custom apps #220
This commit is contained in:
parent
0651037ceb
commit
738d653e28
@ -29,6 +29,7 @@ import android.os.Environment;
|
||||
import android.preference.EditTextPreference;
|
||||
import android.preference.ListPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceCategory;
|
||||
import android.preference.PreferenceFragment;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.preference.PreferenceScreen;
|
||||
@ -169,7 +170,8 @@ public class KiwixSettingsActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
if (BuildConfig.IS_CUSTOM_APP) {
|
||||
getPreferenceScreen().removePreference(getPrefrence("pref_wifi_only"));
|
||||
PreferenceCategory notificationsCategory = (PreferenceCategory) findPreference("pref_extras");
|
||||
notificationsCategory.removePreference(getPrefrence("pref_wifi_only"));
|
||||
}
|
||||
|
||||
mSlider = (SliderPreference) getPrefrence(PREF_ZOOM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user