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
a4159743
Commit
a4159743
authored
Oct 26, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more information to magisk/manager cards
parent
d0b81738
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
352 additions
and
146 deletions
+352
-146
HomeViewModel.kt
.../java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt
+5
-0
fragment_home_md2.xml
app/src/main/res/layout/fragment_home_md2.xml
+308
-146
strings_md2.xml
app/src/main/res/values/strings_md2.xml
+10
-0
styles_view_md2.xml
app/src/main/res/values/styles_view_md2.xml
+29
-0
No files found.
app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt
View file @
a4159743
...
...
@@ -60,6 +60,9 @@ class HomeViewModel(
val
stateMagiskProgress
=
KObservableField
(
0
)
val
stateManagerProgress
=
KObservableField
(
0
)
val
stateMagiskExpanded
=
KObservableField
(
false
)
val
stateManagerExpanded
=
KObservableField
(
false
)
val
stateHideManagerName
=
R
.
string
.
manager
.
res
().
let
{
if
(!
statePackageOriginal
)
{
it
.
replaceRandomWithSpecial
(
3
)
...
...
@@ -137,6 +140,8 @@ class HomeViewModel(
.
subscribeK
{
Navigation
.
install
().
publish
()
}
.
add
()
fun
toggle
(
kof
:
KObservableField
<
Boolean
>)
=
kof
.
toggle
()
private
fun
ensureEnv
()
{
val
invalidStates
=
listOf
(
MagiskState
.
NOT_INSTALLED
,
...
...
app/src/main/res/layout/fragment_home_md2.xml
View file @
a4159743
This diff is collapsed.
Click to expand it.
app/src/main/res/values/strings_md2.xml
View file @
a4159743
...
...
@@ -28,6 +28,16 @@
<string
name=
"home_item_source"
>
Source
</string>
<string
name=
"home_item_xda"
>
XDA
</string>
<string
name=
"home_extra_version"
>
Version
</string>
<string
name=
"home_extra_code"
>
Code
</string>
<string
name=
"home_extra_mode"
>
Mode
</string>
<string
name=
"home_extra_connection"
>
Connection
</string>
<string
name=
"home_extra_package"
>
Package
</string>
<string
name=
"home_extra_mode_normal"
>
Normal
</string>
<string
name=
"home_extra_mode_safe"
>
Safe
</string>
<string
name=
"home_extra_mode_stub"
>
Dynamic
</string>
<string
name=
"safetyNet"
>
SafetyNet
</string>
<!--ref. Magisk Hide-->
<string
name=
"magisk_hide_md2"
>
Hide
</string>
...
...
app/src/main/res/values/styles_view_md2.xml
0 → 100644
View file @
a4159743
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"W"
parent=
"Widget"
/>
<style
name=
"W.Home"
/>
<style
name=
"W.Home.Extra"
/>
<style
name=
"W.Home.Extra.Title"
>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_height"
>
wrap_content
</item>
<item
name=
"android:textAppearance"
>
?appearanceTextCaptionVariant
</item>
<item
name=
"android:singleLine"
>
true
</item>
</style>
<style
name=
"W.Home.Extra.Value"
>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_height"
>
wrap_content
</item>
<item
name=
"android:textAppearance"
>
?appearanceTextCaptionNormal
</item>
<item
name=
"android:textStyle"
>
bold
</item>
<item
name=
"android:layout_marginStart"
>
@dimen/l_50
</item>
<item
name=
"layout_constrainedWidth"
>
true
</item>
<item
name=
"layout_constraintHorizontal_bias"
>
0
</item>
<item
name=
"android:ellipsize"
>
middle
</item>
<item
name=
"android:singleLine"
>
true
</item>
</style>
</resources>
\ No newline at end of file
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