Calling ActionBarDrawerToggle's syncState in onCreate

155 Views Asked by At

The Android documentation says

Call syncState() from your Activity's onPostCreate to synchronize the indicator with the state of the linked DrawerLayout after onRestoreInstanceState has occurred.

https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html

But the Navigation Drawer activity already implemented as a ready-made activity in Android Studio 3.0 calls that method in onCreate.

So which one is correct? Have there been changes recently?

0

There are 0 best solutions below