From 8f83cc6b4561971c6d4f3bddc5ae102e2cd4222a Mon Sep 17 00:00:00 2001 From: Darrell Shi Date: Tue, 27 Dec 2022 19:42:57 +0000 Subject: [PATCH] Display back button on home settings. This change provides a back affordance on the Home settings when accessed from Hub mode settings. Bug: 263403020 Fix: 263403020 Test: Settings > Hub mode > At a glance, see back affordance Test: long press launcher > Home settings, no back affordance Change-Id: I96449d7eae4afac5ec3f61e5aa5a4f2c05b8cd51 --- src/com/android/launcher3/settings/SettingsActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/settings/SettingsActivity.java b/src/com/android/launcher3/settings/SettingsActivity.java index 3e2d051a0a..d3f558b5b1 100644 --- a/src/com/android/launcher3/settings/SettingsActivity.java +++ b/src/com/android/launcher3/settings/SettingsActivity.java @@ -93,7 +93,8 @@ public class SettingsActivity extends FragmentActivity WindowCompat.setDecorFitsSystemWindows(getWindow(), false); Intent intent = getIntent(); - if (intent.hasExtra(EXTRA_FRAGMENT) || intent.hasExtra(EXTRA_FRAGMENT_ARGS)) { + if (intent.hasExtra(EXTRA_FRAGMENT) || intent.hasExtra(EXTRA_FRAGMENT_ARGS) + || intent.hasExtra(EXTRA_FRAGMENT_ARG_KEY)) { getActionBar().setDisplayHomeAsUpEnabled(true); }