Commit 72edbfc4 authored by topjohnwu's avatar topjohnwu

Some platforms do not like null Bundles

parent 276535da
...@@ -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?) {
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment