Skip to content

Commit 7c15c43

Browse files
committed
Hide fading transition setting when Quickstep is enabled
1 parent 4a450ef commit 7c15c43

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

shade/res/xml/launcher_preferences.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
android:defaultValue=""
5353
android:persistent="false" />
5454

55-
<PreferenceCategory android:title="@string/category_shade">
55+
<PreferenceCategory android:key="category_customization" android:title="@string/category_shade">
5656

5757
<ListPreference
5858
android:key="pref_theme"

shade/src/amirz/shade/ShadeSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class ShadeSettings extends SettingsActivity {
3434
public static final String PREF_GRID_SIZE = "pref_grid_size";
3535
public static final String PREF_TRANSITION = "pref_transition";
3636
private static final String ABOUT_APP_VERSION = "about_app_version";
37+
private static final String CATEGORY_CUSTOMIZATION = "category_customization";
3738
private static final String CATEGORY_PLUGINS = "category_plugins";
3839
private static final int UPDATE_THEME_DELAY = 500;
3940
private static final int CLOSE_STACK_DELAY = 500;
@@ -92,7 +93,8 @@ public void onCreate(Bundle bundle) {
9293
});
9394

9495
if (QuickstepProcessInitializer.isEnabled()) {
95-
getPreferenceScreen().removePreference(findPreference(PREF_TRANSITION));
96+
PreferenceCategory pc = (PreferenceCategory) findPreference(CATEGORY_CUSTOMIZATION);
97+
pc.removePreference(findPreference(PREF_TRANSITION));
9698
}
9799

98100
mManager = PluginManager.getInstance(mContext);

0 commit comments

Comments
 (0)