reorder window feature requests in MediaPreviewActivity

ActionBar is initialized in a different way by AppCompat v20 compared to
ABS or v21 even...
// FREEBIE
This commit is contained in:
Jake McGinty 2014-11-25 08:55:10 +02:00
parent d72a3ec669
commit 4573f3cb77

View file

@ -70,14 +70,17 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity {
@Override
protected void onCreate(Bundle bundle) {
this.setTheme(R.style.TextSecure_DarkTheme);
dynamicLanguage.onCreate(this);
super.onCreate(bundle);
setFullscreenIfPossible();
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
dynamicLanguage.onCreate(this);
this.setTheme(R.style.TextSecure_DarkTheme);
super.onCreate(bundle);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setContentView(R.layout.media_preview_activity);
initializeResources();
}