Commit c2eb21d8 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Apply black theme for secondary activity

parent add2103f
......@@ -23,6 +23,7 @@
package org.videolan.vlc.gui;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBar;
......@@ -50,6 +51,10 @@ public class SecondaryActivity extends ActionBarActivity {
Fragment mFragment;
@Override
protected void onCreate(Bundle savedInstanceState) {
/* Theme must be applied before super.onCreate */
if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("enable_black_theme", false)) {
setTheme(R.style.Theme_VLC_Black);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.secondary);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment