Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
ed0c16e2
Commit
ed0c16e2
authored
Mar 27, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for new lint
parent
209fdf34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
SplashActivity.java
src/main/java/com/topjohnwu/magisk/SplashActivity.java
+0
-5
Activity.java
src/main/java/com/topjohnwu/magisk/components/Activity.java
+4
-2
No files found.
src/main/java/com/topjohnwu/magisk/SplashActivity.java
View file @
ed0c16e2
...
...
@@ -17,11 +17,6 @@ import com.topjohnwu.superuser.Shell;
public
class
SplashActivity
extends
Activity
{
@Override
public
int
getDarkTheme
()
{
return
-
1
;
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
src/main/java/com/topjohnwu/magisk/components/Activity.java
View file @
ed0c16e2
...
...
@@ -33,7 +33,9 @@ public abstract class Activity extends AppCompatActivity {
}
@StyleRes
abstract
public
int
getDarkTheme
();
public
int
getDarkTheme
()
{
return
-
1
;
}
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
...
...
@@ -41,7 +43,7 @@ public abstract class Activity extends AppCompatActivity {
if
(
this
instanceof
Topic
.
Subscriber
)
{
((
Topic
.
Subscriber
)
this
).
subscribeTopics
();
}
if
(
getMagiskManager
().
isDarkTheme
&&
getDarkTheme
()
>
0
)
{
if
(
getMagiskManager
().
isDarkTheme
&&
getDarkTheme
()
!=
-
1
)
{
setTheme
(
getDarkTheme
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment