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
21ed759e
Commit
21ed759e
authored
Jul 10, 2019
by
Viktor De Pasquale
Committed by
John Wu
Jul 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicate helper
parent
8d50dfd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
XAndroid.kt
app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt
+1
-8
No files found.
app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt
View file @
21ed759e
...
@@ -9,7 +9,6 @@ import android.content.pm.PackageManager
...
@@ -9,7 +9,6 @@ import android.content.pm.PackageManager
import
android.content.pm.PackageManager.*
import
android.content.pm.PackageManager.*
import
android.net.Uri
import
android.net.Uri
import
android.provider.OpenableColumns
import
android.provider.OpenableColumns
import
android.widget.Toast
import
com.topjohnwu.magisk.App
import
com.topjohnwu.magisk.App
import
java.io.File
import
java.io.File
import
java.io.FileNotFoundException
import
java.io.FileNotFoundException
...
@@ -102,10 +101,4 @@ fun File.mv(destination: File) {
...
@@ -102,10 +101,4 @@ fun File.mv(destination: File) {
fun
String
.
toFile
()
=
File
(
this
)
fun
String
.
toFile
()
=
File
(
this
)
fun
Intent
.
chooser
(
title
:
String
=
"Pick an app"
)
=
Intent
.
createChooser
(
this
,
title
)
fun
Intent
.
chooser
(
title
:
String
=
"Pick an app"
)
=
Intent
.
createChooser
(
this
,
title
)
\ No newline at end of file
fun
Context
.
toast
(
message
:
Int
,
duration
:
Int
=
Toast
.
LENGTH_SHORT
)
=
toast
(
getString
(
message
),
duration
)
fun
Context
.
toast
(
message
:
CharSequence
,
duration
:
Int
=
Toast
.
LENGTH_SHORT
)
=
Toast
.
makeText
(
this
,
message
,
duration
)
\ 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