Notify module if request scope fails to send notification

This commit is contained in:
LoveSy 2023-01-25 02:19:25 +08:00 committed by LoveSy
parent 765c716a5d
commit f19950adda
1 changed files with 5 additions and 1 deletions

View File

@ -294,7 +294,11 @@ public class LSPNotificationManager {
nm.enqueueNotificationWithTag("android", opPkg, modulePackageName, nm.enqueueNotificationWithTag("android", opPkg, modulePackageName,
pushAndGetNotificationId(SCOPE_CHANNEL_ID, modulePackageName, moduleUserId), pushAndGetNotificationId(SCOPE_CHANNEL_ID, modulePackageName, moduleUserId),
notification, 0); notification, 0);
} catch (RemoteException e) { } catch (Throwable e) {
try {
callback.onScopeRequestFailed(scopePackageName, e.getMessage());
} catch (RemoteException ignored) {
}
Log.e(TAG, "request module scope", e); Log.e(TAG, "request module scope", e);
} }
} }