Merge "Don't return anything from setTitleFromBackStack."
This commit is contained in:
@@ -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.
|
* onCreate.
|
||||||
*/
|
*/
|
||||||
protected void setMainContentId(int contentId) {
|
protected void setMainContentId(int contentId) {
|
||||||
@@ -726,7 +726,7 @@ public class SettingsActivity extends SettingsDrawerActivity
|
|||||||
setTitleFromBackStack();
|
setTitleFromBackStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
private int setTitleFromBackStack() {
|
private void setTitleFromBackStack() {
|
||||||
final int count = getFragmentManager().getBackStackEntryCount();
|
final int count = getFragmentManager().getBackStackEntryCount();
|
||||||
|
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
@@ -735,13 +735,11 @@ public class SettingsActivity extends SettingsDrawerActivity
|
|||||||
} else {
|
} else {
|
||||||
setTitle(mInitialTitle);
|
setTitle(mInitialTitle);
|
||||||
}
|
}
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
FragmentManager.BackStackEntry bse = getFragmentManager().getBackStackEntryAt(count - 1);
|
FragmentManager.BackStackEntry bse = getFragmentManager().getBackStackEntryAt(count - 1);
|
||||||
setTitleFromBackStackEntry(bse);
|
setTitleFromBackStackEntry(bse);
|
||||||
|
|
||||||
return count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTitleFromBackStackEntry(FragmentManager.BackStackEntry bse) {
|
private void setTitleFromBackStackEntry(FragmentManager.BackStackEntry bse) {
|
||||||
|
Reference in New Issue
Block a user