Navbar: Add navbar layout preference
Change-Id: Id092c83daa490f29e04bc5b88e52508b1dc53f9c Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -61,6 +61,7 @@ public class ButtonSettings extends ActionFragment implements OnPreferenceChange
|
|||||||
|
|
||||||
private static final String HWKEY_DISABLE = "hardware_keys_disable";
|
private static final String HWKEY_DISABLE = "hardware_keys_disable";
|
||||||
private static final String KEY_NAVIGATION_BAR_ENABLED = "force_show_navbar";
|
private static final String KEY_NAVIGATION_BAR_ENABLED = "force_show_navbar";
|
||||||
|
private static final String KEY_LAYOUT_SETTINGS = "layout_settings";
|
||||||
|
|
||||||
// category keys
|
// category keys
|
||||||
private static final String CATEGORY_HWKEY = "hardware_keys";
|
private static final String CATEGORY_HWKEY = "hardware_keys";
|
||||||
@@ -201,6 +202,8 @@ public class ButtonSettings extends ActionFragment implements OnPreferenceChange
|
|||||||
Settings.System.FORCE_SHOW_NAVBAR,
|
Settings.System.FORCE_SHOW_NAVBAR,
|
||||||
defaultToNavigationBar ? 1 : 0) == 1));
|
defaultToNavigationBar ? 1 : 0) == 1));
|
||||||
mNavigationBar.setOnPreferenceChangeListener(this);
|
mNavigationBar.setOnPreferenceChangeListener(this);
|
||||||
|
|
||||||
|
Preference mLayoutSettings = (Preference) findPreference(KEY_LAYOUT_SETTINGS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user