diff options
author | Amith Yamasani <yamasani@google.com> | 2010-09-12 08:17:50 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2010-09-12 11:47:26 -0700 |
commit | b61cf51d850d37a4d82b93b8ee0d190930421a46 (patch) | |
tree | ec794fc2423782c419a4e6d7508fefa2c8160c38 /src/com/android/settings/SettingsPreferenceFragment.java | |
parent | 60133dd03657354e06fa3aa7e6041862f8ce20a8 (diff) | |
download | packages_apps_settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.zip packages_apps_settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.tar.gz packages_apps_settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.tar.bz2 |
Breadcrumbs in the action bar for navigating up one level and showing current title.
Change-Id: I595e06549b888bd67c6dddd599a4cc77416c3a41
Diffstat (limited to 'src/com/android/settings/SettingsPreferenceFragment.java')
-rw-r--r-- | src/com/android/settings/SettingsPreferenceFragment.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/settings/SettingsPreferenceFragment.java b/src/com/android/settings/SettingsPreferenceFragment.java index d10fda3..bddfb2b 100644 --- a/src/com/android/settings/SettingsPreferenceFragment.java +++ b/src/com/android/settings/SettingsPreferenceFragment.java @@ -51,6 +51,8 @@ public class SettingsPreferenceFragment extends PreferenceFragment { private Button mNextButton; + private boolean mReportedCreation; + interface OnStateListener { void onCreated(SettingsPreferenceFragment fragment); @@ -65,8 +67,10 @@ public class SettingsPreferenceFragment extends PreferenceFragment { @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - if (mOnStateListener != null) { + if (mOnStateListener != null && !mReportedCreation) { mOnStateListener.onCreated(this); + // So that we don't report it on the way back to this fragment + mReportedCreation = true; } setupButtonBar(); |