From 2a7d1c3648adeaf1f9c32369b45df6cbf80af5c2 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Wed, 23 Mar 2016 15:31:08 -0700 Subject: [PATCH] Don't return anything from setTitleFromBackStack. The return value is not consumed by anything. Change-Id: Id024ac02f00861aa1c7f347676c648ab406011b1 --- src/com/android/settings/SettingsActivity.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index c4585d1ca8c..fd45b9b2309 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java @@ -684,7 +684,7 @@ public class SettingsActivity extends SettingsDrawerActivity } /** - * Sets the id of the view continaing the main content. Should be called before calling super's + * Sets the id of the view containing the main content. Should be called before calling super's * onCreate. */ protected void setMainContentId(int contentId) { @@ -726,7 +726,7 @@ public class SettingsActivity extends SettingsDrawerActivity setTitleFromBackStack(); } - private int setTitleFromBackStack() { + private void setTitleFromBackStack() { final int count = getFragmentManager().getBackStackEntryCount(); if (count == 0) { @@ -735,13 +735,11 @@ public class SettingsActivity extends SettingsDrawerActivity } else { setTitle(mInitialTitle); } - return 0; + return; } FragmentManager.BackStackEntry bse = getFragmentManager().getBackStackEntryAt(count - 1); setTitleFromBackStackEntry(bse); - - return count; } private void setTitleFromBackStackEntry(FragmentManager.BackStackEntry bse) {