Skip to content

Commit

Permalink
Change swipe up gesture settings config [2/4]
Browse files Browse the repository at this point in the history
Change-Id: Ice266dba8401211e7f51ecf8cf19301e8898e00d
Signed-off-by: sayan7848 <[email protected]>
  • Loading branch information
Alex Cruz authored and liquid0624 committed Dec 3, 2018
1 parent a89f30a commit c875bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public SwipeUpPreferenceController(Context context, String key) {
}

static boolean isGestureAvailable(Context context) {
if (!context.getResources().getBoolean(R.bool.config_swipe_up_gesture_setting_available) || !isPieRecentsEnabled(context)) {
if (!context.getResources().getBoolean(R.bool.config_custom_swipe_up_gesture_setting_available) || !isPieRecentsEnabled(context)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class SwipeUpPreferenceControllerTest {

@Before
public void setUp() {
SettingsShadowResources.overrideResource(R.bool.config_swipe_up_gesture_setting_available,
SettingsShadowResources.overrideResource(R.bool.config_custom_swipe_up_gesture_setting_available,
true);
SettingsShadowResources.overrideResource(R.bool.config_swipe_up_gesture_default, true);

Expand All @@ -82,7 +82,7 @@ public void testIsGestureAvailable_matchingServiceExists_shouldReturnTrue() {

@Test
public void testIsGestureAvailable_overlayDisabled_matchingServiceExists_shouldReturnFalse() {
SettingsShadowResources.overrideResource(R.bool.config_swipe_up_gesture_setting_available,
SettingsShadowResources.overrideResource(R.bool.config_custom_swipe_up_gesture_setting_available,
false);

final ComponentName recentsComponentName = ComponentName.unflattenFromString(
Expand Down

0 comments on commit c875bcd

Please sign in to comment.