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
e6dcc9c21d
commit
0651037ceb
@ -167,6 +167,11 @@ public class KiwixSettingsActivity extends AppCompatActivity {
|
||||
} else {
|
||||
getPreferenceScreen().removePreference(getPrefrence("pref_language"));
|
||||
}
|
||||
|
||||
if (BuildConfig.IS_CUSTOM_APP) {
|
||||
getPreferenceScreen().removePreference(getPrefrence("pref_wifi_only"));
|
||||
}
|
||||
|
||||
mSlider = (SliderPreference) getPrefrence(PREF_ZOOM);
|
||||
setSliderState();
|
||||
setStorage();
|
||||
@ -181,7 +186,7 @@ public class KiwixSettingsActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
private void setStorage(){
|
||||
if (BuildConfig.IS_CUSTOM_APP){
|
||||
if (BuildConfig.IS_CUSTOM_APP) {
|
||||
getPreferenceScreen().removePreference(getPrefrence("pref_storage"));
|
||||
} else {
|
||||
if (Environment.isExternalStorageEmulated()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user