disable home button on desktop mode - not needed and breaks stuff if clicked
This commit is contained in:
parent
f7bd510aae
commit
311986aab9
@ -82,6 +82,11 @@ public class IITC_Mobile extends Activity {
|
||||
SharedPreferences sharedPreferences, String key) {
|
||||
if (key.equals("pref_force_desktop")) {
|
||||
desktop = sharedPreferences.getBoolean("pref_force_desktop", false);
|
||||
if (desktop) {
|
||||
setActionBarHomeEnabledWithUp(false);
|
||||
actionBar.setTitle(getString(R.string.app_name));
|
||||
}
|
||||
else actionBar.setHomeButtonEnabled(true);
|
||||
invalidateOptionsMenu();
|
||||
}
|
||||
if (key.equals("pref_user_loc"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user