Notify module if request scope fails to send notification
This commit is contained in:
parent
765c716a5d
commit
f19950adda
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue