From 84c26a6b3d5da5c0f10995bcfb8635c24ff4083e Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Tue, 26 Jul 2011 12:06:51 -0700 Subject: Fixed title bar bug for AccessibilityTutorial Bug: 5080516 Change-Id: I2ef6dd4c96bef51e60a2ae9b081545219c821166 --- src/com/android/settings/AccessibilityTutorialActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/settings/AccessibilityTutorialActivity.java b/src/com/android/settings/AccessibilityTutorialActivity.java index 5e65dcd..21d0028 100644 --- a/src/com/android/settings/AccessibilityTutorialActivity.java +++ b/src/com/android/settings/AccessibilityTutorialActivity.java @@ -481,6 +481,7 @@ public class AccessibilityTutorialActivity extends Activity { private final Button mBack; private final Button mNext; private final Button mFinish; + private final int mTitleResId; /** Which bit flags have been set. */ private long mFlags; @@ -501,6 +502,7 @@ public class AccessibilityTutorialActivity extends Activity { super(context); mController = controller; + mTitleResId = titleResId; final View container = LayoutInflater.from(context).inflate( R.layout.accessibility_tutorial_container, this, true); @@ -521,8 +523,6 @@ public class AccessibilityTutorialActivity extends Activity { title.setText(titleResId); } - controller.setTitle(titleResId); - final ViewGroup contentHolder = (ViewGroup) container.findViewById(R.id.content); LayoutInflater.from(context).inflate(layoutResId, contentHolder, true); } @@ -535,6 +535,7 @@ public class AccessibilityTutorialActivity extends Activity { mFlags = 0; mInstructions.setVisibility(View.GONE); + mController.setTitle(mTitleResId); onShown(); } -- cgit v1.1