am e601efd3: Merge "Fix a bug in Activity Up navigation dispatching" into jb-dev
* commit 'e601efd375e79ae016593617f08d6a09a536f719': Fix a bug in Activity Up navigation dispatching
This commit is contained in:
@@ -2540,11 +2540,10 @@ public class Activity extends ContextThemeWrapper
|
||||
if (item.getItemId() == android.R.id.home && mActionBar != null &&
|
||||
(mActionBar.getDisplayOptions() & ActionBar.DISPLAY_HOME_AS_UP) != 0) {
|
||||
if (mParent == null) {
|
||||
onNavigateUp();
|
||||
return onNavigateUp();
|
||||
} else {
|
||||
mParent.onNavigateUpFromChild(this);
|
||||
return mParent.onNavigateUpFromChild(this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user