Skip to content

Commit be3f859

Browse files
committed
Merge branch 'fix-support' into gradle-appcompat-wip
2 parents 4ab0745 + aa25561 commit be3f859

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/com/donnfelker/android/bootstrap/ui/CarouselActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ protected void onCreate(Bundle savedInstanceState) {
6666

6767
/** Called when a drawer has settled in a completely closed state. */
6868
public void onDrawerClosed(View view) {
69-
getActionBar().setTitle(mTitle);
70-
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
69+
getSupportActionBar().setTitle(mTitle);
70+
supportInvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
7171
}
7272

7373
/** Called when a drawer has settled in a completely open state. */
7474
public void onDrawerOpened(View drawerView) {
75-
getActionBar().setTitle(mDrawerTitle);
76-
invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
75+
getSupportActionBar().setTitle(mDrawerTitle);
76+
supportInvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
7777
}
7878
};
7979

0 commit comments

Comments
 (0)