From 72edbfc4559161df2c3edad846c51b797401177d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 25 Nov 2019 19:09:54 -0500 Subject: [PATCH] Some platforms do not like null Bundles --- app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt | 2 +- shared/src/main/java/com/topjohnwu/magisk/FileProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt b/app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt index 58c22bb42..c009b2445 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt +++ b/app/src/main/java/com/topjohnwu/magisk/utils/SuHandler.kt @@ -28,7 +28,7 @@ object SuHandler : ProviderCallHandler { override fun call(context: Context, method: String, arg: String?, extras: Bundle?): Bundle? { invoke(context.wrap(), method, extras) - return null + return Bundle.EMPTY } operator fun invoke(context: Context, action: String?, data: Bundle?) { diff --git a/shared/src/main/java/com/topjohnwu/magisk/FileProvider.java b/shared/src/main/java/com/topjohnwu/magisk/FileProvider.java index 45c123b9d..820dcad22 100644 --- a/shared/src/main/java/com/topjohnwu/magisk/FileProvider.java +++ b/shared/src/main/java/com/topjohnwu/magisk/FileProvider.java @@ -154,7 +154,7 @@ public class FileProvider extends ContentProvider { public Bundle call(String method, String arg, Bundle extras) { if (callHandler != null) return callHandler.call(getContext(), method, arg, extras); - return null; + return Bundle.EMPTY; } @Override