mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-18 22:28:29 +00:00
Some platforms do not like null Bundles
This commit is contained in:
parent
276535dad6
commit
72edbfc455
@ -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?) {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user