Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a935607f authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Remove notification when uninstall fails

Test: Before: Triggered exception and saw notification stuck.
      After: Triggered exception and saw notification removed.

Change-Id: Ieba4b2ad1c46029c0892c5adc4738aca57ead8d5
parent cb44628e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -304,6 +304,8 @@ public class UninstallerActivity extends Activity {
                                ? PackageManager.DELETE_ALL_USERS : 0,
                        pendingIntent.getIntentSender(), mDialogInfo.user.getIdentifier());
            } catch (Exception e) {
                notificationManager.cancel(uninstallId);

                Log.e(TAG, "Cannot start uninstall", e);
                showGenericError();
            }