mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 19:18:37 +00:00
Install prompt notification should dismiss failures and vice-versa.
This commit is contained in:
@@ -30,6 +30,8 @@ object ApkUpdateNotifications {
|
|||||||
*/
|
*/
|
||||||
@SuppressLint("LaunchActivityFromNotification")
|
@SuppressLint("LaunchActivityFromNotification")
|
||||||
fun showInstallPrompt(context: Context, downloadId: Long) {
|
fun showInstallPrompt(context: Context, downloadId: Long) {
|
||||||
|
ServiceUtil.getNotificationManager(context).cancel(NotificationIds.APK_UPDATE_FAILED_INSTALL)
|
||||||
|
|
||||||
val pendingIntent = PendingIntent.getBroadcast(
|
val pendingIntent = PendingIntent.getBroadcast(
|
||||||
context,
|
context,
|
||||||
1,
|
1,
|
||||||
@@ -53,6 +55,8 @@ object ApkUpdateNotifications {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun showInstallFailed(context: Context, reason: FailureReason) {
|
fun showInstallFailed(context: Context, reason: FailureReason) {
|
||||||
|
ServiceUtil.getNotificationManager(context).cancel(NotificationIds.APK_UPDATE_PROMPT_INSTALL)
|
||||||
|
|
||||||
val pendingIntent = PendingIntent.getActivity(
|
val pendingIntent = PendingIntent.getActivity(
|
||||||
context,
|
context,
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user