Skip to content

Commit 3d0cc6c

Browse files
committed
Final code
1 parent 6da10d2 commit 3d0cc6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/main/java/com/teamtreehouse/oslist/MainActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.teamtreehouse.oslist;
22

3+
import android.content.res.Configuration;
34
import android.os.Bundle;
45
import android.support.v4.widget.DrawerLayout;
56
import android.support.v7.app.ActionBarActivity;
@@ -78,6 +79,12 @@ protected void onPostCreate(Bundle savedInstanceState) {
7879
mDrawerToggle.syncState();
7980
}
8081

82+
@Override
83+
public void onConfigurationChanged(Configuration newConfig) {
84+
super.onConfigurationChanged(newConfig);
85+
mDrawerToggle.onConfigurationChanged(newConfig);
86+
}
87+
8188
@Override
8289
public boolean onCreateOptionsMenu(Menu menu) {
8390
// Inflate the menu; this adds items to the action bar if it is present.

0 commit comments

Comments
 (0)