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
aa374b51
Commit
aa374b51
authored
Aug 30, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move fragments to separate package
parent
5c483745
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
44 additions
and
13 deletions
+44
-13
MainActivity.java
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
+8
-1
LogFragment.java
...full/java/com/topjohnwu/magisk/fragments/LogFragment.java
+6
-2
MagiskFragment.java
...l/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
+6
-1
MagiskHideFragment.java
...va/com/topjohnwu/magisk/fragments/MagiskHideFragment.java
+2
-1
MagiskLogFragment.java
...ava/com/topjohnwu/magisk/fragments/MagiskLogFragment.java
+3
-1
ModulesFragment.java
.../java/com/topjohnwu/magisk/fragments/ModulesFragment.java
+4
-1
ReposFragment.java
...ll/java/com/topjohnwu/magisk/fragments/ReposFragment.java
+4
-1
SettingsFragment.java
...java/com/topjohnwu/magisk/fragments/SettingsFragment.java
+5
-1
SuLogFragment.java
...ll/java/com/topjohnwu/magisk/fragments/SuLogFragment.java
+2
-1
SuperuserFragment.java
...ava/com/topjohnwu/magisk/fragments/SuperuserFragment.java
+2
-1
fragment_log.xml
app/src/full/res/layout/fragment_log.xml
+1
-1
fragment_su_log.xml
app/src/full/res/layout/fragment_su_log.xml
+1
-1
No files found.
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
View file @
aa374b51
...
@@ -15,6 +15,13 @@ import android.view.MenuItem;
...
@@ -15,6 +15,13 @@ import android.view.MenuItem;
import
android.view.View
;
import
android.view.View
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.fragments.LogFragment
;
import
com.topjohnwu.magisk.fragments.MagiskFragment
;
import
com.topjohnwu.magisk.fragments.MagiskHideFragment
;
import
com.topjohnwu.magisk.fragments.ModulesFragment
;
import
com.topjohnwu.magisk.fragments.ReposFragment
;
import
com.topjohnwu.magisk.fragments.SettingsFragment
;
import
com.topjohnwu.magisk.fragments.SuperuserFragment
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.superuser.Shell
;
import
com.topjohnwu.superuser.Shell
;
...
@@ -29,8 +36,8 @@ public class MainActivity extends BaseActivity
...
@@ -29,8 +36,8 @@ public class MainActivity extends BaseActivity
private
int
mDrawerItem
;
private
int
mDrawerItem
;
private
boolean
fromShortcut
=
true
;
private
boolean
fromShortcut
=
true
;
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
drawer_layout
)
DrawerLayout
drawer
;
@BindView
(
R
.
id
.
drawer_layout
)
DrawerLayout
drawer
;
@BindView
(
R
.
id
.
toolbar
)
public
Toolbar
toolbar
;
@BindView
(
R
.
id
.
nav_view
)
public
NavigationView
navigationView
;
@BindView
(
R
.
id
.
nav_view
)
public
NavigationView
navigationView
;
private
float
toolbarElevation
;
private
float
toolbarElevation
;
...
...
app/src/full/java/com/topjohnwu/magisk/LogFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
LogFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -8,6 +8,10 @@ import android.view.LayoutInflater;
...
@@ -8,6 +8,10 @@ import android.view.LayoutInflater;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.MainActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.TabFragmentAdapter
;
import
com.topjohnwu.magisk.adapters.TabFragmentAdapter
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
...
@@ -29,7 +33,7 @@ public class LogFragment extends BaseFragment {
...
@@ -29,7 +33,7 @@ public class LogFragment extends BaseFragment {
View
v
=
inflater
.
inflate
(
R
.
layout
.
fragment_log
,
container
,
false
);
View
v
=
inflater
.
inflate
(
R
.
layout
.
fragment_log
,
container
,
false
);
unbinder
=
ButterKnife
.
bind
(
this
,
v
);
unbinder
=
ButterKnife
.
bind
(
this
,
v
);
((
MainActivity
)
get
Activity
()).
toolbar
.
setElevation
(
0
);
((
MainActivity
)
require
Activity
()).
toolbar
.
setElevation
(
0
);
TabFragmentAdapter
adapter
=
new
TabFragmentAdapter
(
getChildFragmentManager
());
TabFragmentAdapter
adapter
=
new
TabFragmentAdapter
(
getChildFragmentManager
());
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
MagiskFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.app.NotificationManager
;
import
android.app.NotificationManager
;
import
android.content.Context
;
import
android.content.Context
;
...
@@ -20,6 +20,11 @@ import android.widget.ProgressBar;
...
@@ -20,6 +20,11 @@ import android.widget.ProgressBar;
import
android.widget.RelativeLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.BuildConfig
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.MainActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.asyncs.CheckSafetyNet
;
import
com.topjohnwu.magisk.asyncs.CheckSafetyNet
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.BaseActivity
;
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskHideFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
MagiskHideFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
...
@@ -12,6 +12,7 @@ import android.view.View;
...
@@ -12,6 +12,7 @@ import android.view.View;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.SearchView
;
import
android.widget.SearchView
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.ApplicationAdapter
;
import
com.topjohnwu.magisk.adapters.ApplicationAdapter
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskLogFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
MagiskLogFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.Manifest
;
import
android.Manifest
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -16,6 +16,8 @@ import android.widget.ProgressBar;
...
@@ -16,6 +16,8 @@ import android.widget.ProgressBar;
import
android.widget.ScrollView
;
import
android.widget.ScrollView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
...
...
app/src/full/java/com/topjohnwu/magisk/ModulesFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
ModulesFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.Manifest
;
import
android.Manifest
;
import
android.app.Activity
;
import
android.app.Activity
;
...
@@ -16,6 +16,9 @@ import android.view.View;
...
@@ -16,6 +16,9 @@ import android.view.View;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.FlashActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.ModulesAdapter
;
import
com.topjohnwu.magisk.adapters.ModulesAdapter
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.container.Module
;
import
com.topjohnwu.magisk.container.Module
;
...
...
app/src/full/java/com/topjohnwu/magisk/ReposFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
ReposFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.app.AlertDialog
;
import
android.app.AlertDialog
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -15,6 +15,9 @@ import android.view.ViewGroup;
...
@@ -15,6 +15,9 @@ import android.view.ViewGroup;
import
android.widget.SearchView
;
import
android.widget.SearchView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.ReposAdapter
;
import
com.topjohnwu.magisk.adapters.ReposAdapter
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
...
...
app/src/full/java/com/topjohnwu/magisk/SettingsFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
SettingsFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
...
@@ -24,6 +24,10 @@ import android.view.ViewGroup;
...
@@ -24,6 +24,10 @@ import android.view.ViewGroup;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.MagiskManager
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.PatchAPK
;
import
com.topjohnwu.magisk.asyncs.PatchAPK
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
...
...
app/src/full/java/com/topjohnwu/magisk/SuLogFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
SuLogFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
...
@@ -11,6 +11,7 @@ import android.view.View;
...
@@ -11,6 +11,7 @@ import android.view.View;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.SuLogAdapter
;
import
com.topjohnwu.magisk.adapters.SuLogAdapter
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
...
...
app/src/full/java/com/topjohnwu/magisk/SuperuserFragment.java
→
app/src/full/java/com/topjohnwu/magisk/
fragments/
SuperuserFragment.java
View file @
aa374b51
package
com
.
topjohnwu
.
magisk
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.content.pm.PackageManager
;
import
android.content.pm.PackageManager
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -9,6 +9,7 @@ import android.view.View;
...
@@ -9,6 +9,7 @@ import android.view.View;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.adapters.PolicyAdapter
;
import
com.topjohnwu.magisk.adapters.PolicyAdapter
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.container.Policy
;
import
com.topjohnwu.magisk.container.Policy
;
...
...
app/src/full/res/layout/fragment_log.xml
View file @
aa374b51
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
"com.topjohnwu.magisk.LogFragment"
>
tools:context=
"com.topjohnwu.magisk.
fragments.
LogFragment"
>
<android.support.design.widget.TabLayout
<android.support.design.widget.TabLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/full/res/layout/fragment_su_log.xml
View file @
aa374b51
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
"com.topjohnwu.magisk.SuLogFragment"
>
tools:context=
"com.topjohnwu.magisk.
fragments.
SuLogFragment"
>
<TextView
<TextView
android:id=
"@+id/empty_rv"
android:id=
"@+id/empty_rv"
...
...
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