mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-06 22:04:40 +03:00
21 lines
583 B
Java
21 lines
583 B
Java
|
package org.schabi.newpipe;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.preference.PreferenceManager;
|
||
|
import android.support.annotation.Nullable;
|
||
|
import android.support.v7.app.AppCompatActivity;
|
||
|
|
||
|
import java.util.Objects;
|
||
|
|
||
|
public class Themer extends AppCompatActivity {
|
||
|
|
||
|
@Override
|
||
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||
|
super.onCreate(savedInstanceState);
|
||
|
if (Objects.equals(PreferenceManager.getDefaultSharedPreferences(this)
|
||
|
.getString("theme", "1"), "0")) {
|
||
|
setTheme(R.style.DarkTheme);
|
||
|
}
|
||
|
}
|
||
|
}
|