added comment
This commit is contained in:
parent
3f2cf0d70b
commit
fe22c49ed0
|
|
@ -209,8 +209,10 @@ public class SimpleActionBarDrawerToggle extends ActionBarDrawerToggle
|
|||
|
||||
@Override
|
||||
public void onDrawerClosed(@NonNull final View view) {
|
||||
if (isInvalidateOptionsMenuSupported) {
|
||||
activity.supportInvalidateOptionsMenu();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Call it at {@link android.app.Activity#onPostCreate(android.os.Bundle)}.
|
||||
|
|
@ -229,7 +231,12 @@ public class SimpleActionBarDrawerToggle extends ActionBarDrawerToggle
|
|||
}
|
||||
}
|
||||
|
||||
public void setInvalidateOptionsMenu(final boolean isInvalidateOptionsMenuSupported) {
|
||||
/**
|
||||
* Set turn on/off invocation of supportInvalidateOptionsMenu
|
||||
*
|
||||
* @param isInvalidateOptionsMenuSupported flag for turning on/off invocation.
|
||||
*/
|
||||
public void setInvalidateOptionsMenuSupported(final boolean isInvalidateOptionsMenuSupported) {
|
||||
this.isInvalidateOptionsMenuSupported = isInvalidateOptionsMenuSupported;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue