commit | 3435b168423c551e2682eaf3f000734f0b66f2cf | [log] [tgz] |
---|---|---|
author | Juan Ezquerro LLanes <arrase@gamil.com> | Tue May 27 00:09:16 2014 +0200 |
committer | Juan Ezquerro LLanes <arrase@gamil.com> | Tue May 27 08:59:21 2014 +0200 |
tree | 4d0e7282d5f3ece431f5730e448d2f32b573a811 | |
parent | 0511ec2973ccfd08ec3e6f9298f37f9ffbb29b9b [diff] |
OmniGears: Fix enable/disable OmniSwitch settings Change-Id: I089b1bbd9d9725fdbb7ca08549f26ce45420ee44
diff --git a/src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java b/src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java index e4e4a7c..6efd850 100644 --- a/src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java +++ b/src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java
@@ -104,6 +104,7 @@ boolean omniSwitchAvailable = isOmniSwitchAvailable(); if (!omniSwitchAvailable){ + Settings.System.putInt(Settings.System.RECENTS_USE_OMNISWITCH, 0); prefSet.removePreference(mOmniSwitchCategory); } else { mRecentsUseOmniSwitch = (CheckBoxPreference) @@ -155,6 +156,7 @@ Settings.System.putInt( resolver, Settings.System.RECENTS_USE_OMNISWITCH, value ? 1 : 0); + mOmniSwitchSettings.setEnabled(value); } else { return false; }