Skip to content

Commit

Permalink
Hide fading transition setting when Quickstep is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzaidi committed May 19, 2019
1 parent 4a450ef commit 7c15c43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shade/res/xml/launcher_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
android:defaultValue=""
android:persistent="false" />

<PreferenceCategory android:title="@string/category_shade">
<PreferenceCategory android:key="category_customization" android:title="@string/category_shade">

<ListPreference
android:key="pref_theme"
Expand Down
4 changes: 3 additions & 1 deletion shade/src/amirz/shade/ShadeSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class ShadeSettings extends SettingsActivity {
public static final String PREF_GRID_SIZE = "pref_grid_size";
public static final String PREF_TRANSITION = "pref_transition";
private static final String ABOUT_APP_VERSION = "about_app_version";
private static final String CATEGORY_CUSTOMIZATION = "category_customization";
private static final String CATEGORY_PLUGINS = "category_plugins";
private static final int UPDATE_THEME_DELAY = 500;
private static final int CLOSE_STACK_DELAY = 500;
Expand Down Expand Up @@ -92,7 +93,8 @@ public void onCreate(Bundle bundle) {
});

if (QuickstepProcessInitializer.isEnabled()) {
getPreferenceScreen().removePreference(findPreference(PREF_TRANSITION));
PreferenceCategory pc = (PreferenceCategory) findPreference(CATEGORY_CUSTOMIZATION);
pc.removePreference(findPreference(PREF_TRANSITION));
}

mManager = PluginManager.getInstance(mContext);
Expand Down

0 comments on commit 7c15c43

Please sign in to comment.