Skip to content

Commit aa25561

Browse files
committed
Using support functions to make sure this works also in older APIs
1 parent c5af070 commit aa25561

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
@@ -67,14 +67,14 @@ protected void onCreate(Bundle savedInstanceState) {
6767

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

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

0 commit comments

Comments
 (0)