Removed Setting for Desktop mode. It's not compatible now.
If folks really want to they can still use it via a browser.
This commit is contained in:
parent
822b7df00a
commit
4f2cb4f6bb
@ -34,8 +34,6 @@
|
||||
<string name="pref_misc_cat">Misc</string>
|
||||
<string name="pref_plugins">Plugins</string>
|
||||
<string name="pref_plugins_title">Available plugins</string>
|
||||
<string name="pref_force_desktop">Force desktop mode</string>
|
||||
<string name="pref_force_desktop_sum">Nice for tablets, looks awful on smartphones</string>
|
||||
<string name="pref_user_loc">Display user location</string>
|
||||
<string name="pref_user_loc_sum">Show users position on map</string>
|
||||
<string name="pref_force_https">Force https</string>
|
||||
|
@ -12,11 +12,6 @@
|
||||
<PreferenceCategory
|
||||
android:key="pref_about_cat"
|
||||
android:title="@string/pref_ui_cat">
|
||||
<CheckBoxPreference
|
||||
android:key="pref_force_desktop"
|
||||
android:title="@string/pref_force_desktop"
|
||||
android:summary="@string/pref_force_desktop_sum"
|
||||
android:defaultValue="false" />
|
||||
<CheckBoxPreference
|
||||
android:key="pref_user_loc"
|
||||
android:title="@string/pref_user_loc"
|
||||
|
@ -330,14 +330,9 @@ public class IITC_Mobile extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
// vp=f enables desktop mode...vp=m is the defaul mobile view
|
||||
// Force mobile view.
|
||||
// New actions are not compatible with desktop mode
|
||||
private String addUrlParam(String url) {
|
||||
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
this.desktop = sharedPref.getBoolean("pref_force_desktop", false);
|
||||
|
||||
if (desktop)
|
||||
return (url + "?vp=f");
|
||||
else
|
||||
return (url + "?vp=m");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user