Adds the headers for choose lock generic inside onCreate

This will make sure the headers are set before the underlying
RecyclerView has made its first layout, and prevents an animation
from playing when rotating to landscape.

bug:26990364
Change-Id: I2838a07a145b4d6136e88125ab955006d84d135c
This commit is contained in:
Udam Saini
2016-02-09 10:32:56 -08:00
parent 0f6b093db7
commit 6de85e80a9

View File

@@ -204,11 +204,6 @@ public class ChooseLockGeneric extends SettingsActivity {
mWaitingForConfirmation = true; mWaitingForConfirmation = true;
} }
} }
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (mForFingerprint) { if (mForFingerprint) {
setHeaderView(R.layout.choose_lock_generic_fingerprint_header); setHeaderView(R.layout.choose_lock_generic_fingerprint_header);
} }