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
4a7c3c06
Commit
4a7c3c06
authored
Oct 19, 2020
by
vvb2060
Committed by
John Wu
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable hide/restore when no remote info
parent
da93bbc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
SettingsItems.kt
...in/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt
+6
-0
No files found.
app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsItems.kt
View file @
4a7c3c06
...
@@ -99,11 +99,17 @@ object Hide : BaseSettingsItem.Input() {
...
@@ -99,11 +99,17 @@ object Hide : BaseSettingsItem.Input() {
override
fun
getView
(
context
:
Context
)
=
DialogSettingsAppNameBinding
override
fun
getView
(
context
:
Context
)
=
DialogSettingsAppNameBinding
.
inflate
(
LayoutInflater
.
from
(
context
)).
also
{
it
.
data
=
this
}.
root
.
inflate
(
LayoutInflater
.
from
(
context
)).
also
{
it
.
data
=
this
}.
root
override
fun
refresh
()
{
isEnabled
=
Info
.
remote
.
stub
.
versionCode
>
0
}
}
}
object
Restore
:
BaseSettingsItem
.
Blank
()
{
object
Restore
:
BaseSettingsItem
.
Blank
()
{
override
val
title
=
R
.
string
.
settings_restore_manager_title
.
asTransitive
()
override
val
title
=
R
.
string
.
settings_restore_manager_title
.
asTransitive
()
override
val
description
=
R
.
string
.
settings_restore_manager_summary
.
asTransitive
()
override
val
description
=
R
.
string
.
settings_restore_manager_summary
.
asTransitive
()
override
fun
refresh
()
{
isEnabled
=
Info
.
remote
.
app
.
versionCode
>
0
}
}
}
object
AddShortcut
:
BaseSettingsItem
.
Blank
()
{
object
AddShortcut
:
BaseSettingsItem
.
Blank
()
{
...
...
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