summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/SettingsPreferenceFragment.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-09-12 08:17:50 -0700
committerAmith Yamasani <yamasani@google.com>2010-09-12 11:47:26 -0700
commitb61cf51d850d37a4d82b93b8ee0d190930421a46 (patch)
treeec794fc2423782c419a4e6d7508fefa2c8160c38 /src/com/android/settings/SettingsPreferenceFragment.java
parent60133dd03657354e06fa3aa7e6041862f8ce20a8 (diff)
downloadpackages_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.java6
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();