Commit ed0c16e2 authored by topjohnwu's avatar topjohnwu

Update for new lint

parent 209fdf34
...@@ -17,11 +17,6 @@ import com.topjohnwu.superuser.Shell; ...@@ -17,11 +17,6 @@ import com.topjohnwu.superuser.Shell;
public class SplashActivity extends Activity { public class SplashActivity extends Activity {
@Override
public int getDarkTheme() {
return -1;
}
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
......
...@@ -33,7 +33,9 @@ public abstract class Activity extends AppCompatActivity { ...@@ -33,7 +33,9 @@ public abstract class Activity extends AppCompatActivity {
} }
@StyleRes @StyleRes
abstract public int getDarkTheme(); public int getDarkTheme() {
return -1;
}
@Override @Override
protected void onCreate(@Nullable Bundle savedInstanceState) { protected void onCreate(@Nullable Bundle savedInstanceState) {
...@@ -41,7 +43,7 @@ public abstract class Activity extends AppCompatActivity { ...@@ -41,7 +43,7 @@ public abstract class Activity extends AppCompatActivity {
if (this instanceof Topic.Subscriber) { if (this instanceof Topic.Subscriber) {
((Topic.Subscriber) this).subscribeTopics(); ((Topic.Subscriber) this).subscribeTopics();
} }
if (getMagiskManager().isDarkTheme && getDarkTheme() > 0) { if (getMagiskManager().isDarkTheme && getDarkTheme() != -1) {
setTheme(getDarkTheme()); setTheme(getDarkTheme());
} }
} }
......
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