diff options
author | Maurice Lam <yukl@google.com> | 2015-04-23 23:08:53 -0700 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2015-04-27 11:54:14 -0700 |
commit | 752e5f3895aa6f758182d41b9c4e4cf01a15e5fb (patch) | |
tree | d70da65ce51d18b4e055e99a5a1a4a0ba468caed /src/com/android/settings/SetupRedactionInterstitial.java | |
parent | c5184ff1af600d0195532b9b6c37505cc2f863f1 (diff) | |
download | packages_apps_Settings-752e5f3895aa6f758182d41b9c4e4cf01a15e5fb.zip packages_apps_Settings-752e5f3895aa6f758182d41b9c4e4cf01a15e5fb.tar.gz packages_apps_Settings-752e5f3895aa6f758182d41b9c4e4cf01a15e5fb.tar.bz2 |
[LockSetup] Hide back button in notification interstitial
The back button is disabled because the lock screen is already set
up. Per UX spec, we should hide the back button instead of disabling
it.
Bug: 20427092
Change-Id: Iaaf8860208179dfa5974b172013f9882827c6c4a
Diffstat (limited to 'src/com/android/settings/SetupRedactionInterstitial.java')
-rw-r--r-- | src/com/android/settings/SetupRedactionInterstitial.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/SetupRedactionInterstitial.java b/src/com/android/settings/SetupRedactionInterstitial.java index c6437e0..d3d841e 100644 --- a/src/com/android/settings/SetupRedactionInterstitial.java +++ b/src/com/android/settings/SetupRedactionInterstitial.java @@ -28,6 +28,7 @@ import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.Button; /** * Setup Wizard's version of RedactionInterstitial screen. It inherits the logic and basic structure @@ -82,7 +83,8 @@ public class SetupRedactionInterstitial extends RedactionInterstitial { final NavigationBar navigationBar = layout.getNavigationBar(); navigationBar.setNavigationBarListener(this); - navigationBar.getBackButton().setEnabled(false); + final Button backButton = navigationBar.getBackButton(); + backButton.setVisibility(View.GONE); SetupWizardUtils.setImmersiveMode(getActivity()); return layout; } |