disable home button on desktop mode - not needed and breaks stuff if clicked

This commit is contained in:
Philipp Schaefer 2013-05-29 11:30:59 +02:00
parent f7bd510aae
commit 311986aab9

View File

@ -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"))