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
72edbfc4
Commit
72edbfc4
authored
Nov 26, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some platforms do not like null Bundles
parent
276535da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SuHandler.kt
app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt
+1
-1
FileProvider.java
shared/src/main/java/com/topjohnwu/magisk/FileProvider.java
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt
View file @
72edbfc4
...
@@ -28,7 +28,7 @@ object SuHandler : ProviderCallHandler {
...
@@ -28,7 +28,7 @@ object SuHandler : ProviderCallHandler {
override
fun
call
(
context
:
Context
,
method
:
String
,
arg
:
String
?,
extras
:
Bundle
?):
Bundle
?
{
override
fun
call
(
context
:
Context
,
method
:
String
,
arg
:
String
?,
extras
:
Bundle
?):
Bundle
?
{
invoke
(
context
.
wrap
(),
method
,
extras
)
invoke
(
context
.
wrap
(),
method
,
extras
)
return
null
return
Bundle
.
EMPTY
}
}
operator
fun
invoke
(
context
:
Context
,
action
:
String
?,
data
:
Bundle
?)
{
operator
fun
invoke
(
context
:
Context
,
action
:
String
?,
data
:
Bundle
?)
{
...
...
shared/src/main/java/com/topjohnwu/magisk/FileProvider.java
View file @
72edbfc4
...
@@ -154,7 +154,7 @@ public class FileProvider extends ContentProvider {
...
@@ -154,7 +154,7 @@ public class FileProvider extends ContentProvider {
public
Bundle
call
(
String
method
,
String
arg
,
Bundle
extras
)
{
public
Bundle
call
(
String
method
,
String
arg
,
Bundle
extras
)
{
if
(
callHandler
!=
null
)
if
(
callHandler
!=
null
)
return
callHandler
.
call
(
getContext
(),
method
,
arg
,
extras
);
return
callHandler
.
call
(
getContext
(),
method
,
arg
,
extras
);
return
null
;
return
Bundle
.
EMPTY
;
}
}
@Override
@Override
...
...
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