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

Commit 72dcb913 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix [-] buttons in the notification builder test.

(Broken by change I9fae5a4a).

Bug: 8564511
Change-Id: I0d5b65e6678018630c812c5616e9b3f068029e66
parent 89454f83
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -119,34 +119,34 @@ public class NotificationBuilderTest extends Activity
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.clear_1:
                    mNM.cancel(1);
                    cancelNotification(1);
                    break;
                case R.id.clear_2:
                    mNM.cancel(2);
                    cancelNotification(2);
                    break;
                case R.id.clear_3:
                    mNM.cancel(3);
                    cancelNotification(3);
                    break;
                case R.id.clear_4:
                    mNM.cancel(4);
                    cancelNotification(4);
                    break;
                case R.id.clear_5:
                    mNM.cancel(5);
                    cancelNotification(5);
                    break;
                case R.id.clear_6:
                    mNM.cancel(6);
                    cancelNotification(6);
                    break;
                case R.id.clear_7:
                    mNM.cancel(7);
                    cancelNotification(7);
                    break;
                case R.id.clear_8:
                    mNM.cancel(8);
                    cancelNotification(8);
                    break;
                case R.id.clear_9:
                    mNM.cancel(9);
                    cancelNotification(9);
                    break;
                case R.id.clear_10:
                    mNM.cancel(10);
                    cancelNotification(10);
                    break;
                case R.id.notify_1:
                    sendNotification(1);
@@ -203,6 +203,10 @@ public class NotificationBuilderTest extends Activity
        }, mStartDelay);
    }

    private void cancelNotification(final int id) {
        mNM.cancel(NOTIFY_TAG, id);
    }

    private static CharSequence subst(CharSequence in, char ch, CharSequence sub) {
        int i=0;
        SpannableStringBuilder edit = new SpannableStringBuilder(in);