Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Avoid NPE in ActionBarDrawerToggle when no supportActionBar is set
Browse files Browse the repository at this point in the history
Bug: 17343548
Change-Id: I2c34cccf3fc49a9e7d1a818f8e37b2938784f240
  • Loading branch information
Bryan Mawhinney committed Sep 3, 2014
1 parent 6170ff5 commit ce221d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected final Context getActionBarThemedContext() {
private class ActionBarDrawableToggleImpl implements ActionBarDrawerToggle.Delegate {
@Override
public Drawable getThemeUpIndicator() {
final TypedArray a = mActionBar.getThemedContext()
final TypedArray a = getActionBarThemedContext()
.obtainStyledAttributes(new int[]{ getHomeAsUpIndicatorAttrId() });
final Drawable result = a.getDrawable(0);
a.recycle();
Expand Down

0 comments on commit ce221d9

Please sign in to comment.