am 291fb4b5: Merge "docs: Added calls to super.onDrawerZZZ() in the HTML for navigation samples. Bug: 11371890 HTML: http://quixote.mtv.corp.google.com:8104/training/implementing-navigation/nav-drawer.html" into klp-docs
* commit '291fb4b5ff8337d28ff8aa133cc2ea4a8fc09b58': docs: Added calls to super.onDrawerZZZ() in the HTML for navigation samples. Bug: 11371890 HTML: http://quixote.mtv.corp.google.com:8104/training/implementing-navigation/nav-drawer.html
This commit is contained in:
@@ -257,12 +257,14 @@ public class MainActivity extends Activity {
|
|||||||
|
|
||||||
/** Called when a drawer has settled in a completely closed state. */
|
/** Called when a drawer has settled in a completely closed state. */
|
||||||
public void onDrawerClosed(View view) {
|
public void onDrawerClosed(View view) {
|
||||||
|
super.onDrawerClosed(view);
|
||||||
getActionBar().setTitle(mTitle);
|
getActionBar().setTitle(mTitle);
|
||||||
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
|
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Called when a drawer has settled in a completely open state. */
|
/** Called when a drawer has settled in a completely open state. */
|
||||||
public void onDrawerOpened(View drawerView) {
|
public void onDrawerOpened(View drawerView) {
|
||||||
|
super.onDrawerOpened(drawerView);
|
||||||
getActionBar().setTitle(mDrawerTitle);
|
getActionBar().setTitle(mDrawerTitle);
|
||||||
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
|
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
|
||||||
}
|
}
|
||||||
@@ -335,11 +337,13 @@ public class MainActivity extends Activity {
|
|||||||
|
|
||||||
/** Called when a drawer has settled in a completely closed state. */
|
/** Called when a drawer has settled in a completely closed state. */
|
||||||
public void onDrawerClosed(View view) {
|
public void onDrawerClosed(View view) {
|
||||||
|
super.onDrawerClosed(view);
|
||||||
getActionBar().setTitle(mTitle);
|
getActionBar().setTitle(mTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Called when a drawer has settled in a completely open state. */
|
/** Called when a drawer has settled in a completely open state. */
|
||||||
public void onDrawerOpened(View drawerView) {
|
public void onDrawerOpened(View drawerView) {
|
||||||
|
super.onDrawerOpened(drawerView);
|
||||||
getActionBar().setTitle(mDrawerTitle);
|
getActionBar().setTitle(mDrawerTitle);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user