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

Commit e062b6ea authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Revert "Change the order of mErrorReason and mOperationExecuted before sending...

Revert "Change the order of mErrorReason and mOperationExecuted before sending broadcast" am: e180c006 am: b34c4ae6 am: 310ab121 am: 08f75a73 am: 524c6675

Change-Id: Id1b2dcb3152ebcfe54dd04d2ed91f8dfb1e97431
parents f5603227 524c6675
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -174,9 +174,9 @@ public class TestNotificationService extends NotificationListenerService {
        return result;
    }

    private boolean isStartProgress(Notification notification) {
        ProgressBar progressBar = getProgresssBar(getRemoteViews(notification));
        return progressBar != null;
    private boolean isStartProgress(Notification notifiction) {
        ProgressBar progressBar = getProgresssBar(getRemoteViews(notifiction));
        return (progressBar != null) ? progressBar.getProgress() > 0 : false;
    }

    private RemoteViews getRemoteViews(Notification notifiction) {
+0 −2
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ public class CancelFromNotificationUiTest extends ActivityTest<FilesActivity> {
                    mErrorReason = intent.getStringExtra(
                            TestNotificationService.EXTRA_ERROR_REASON);
                }
                Log.i(TAG, "Received operation broadcast " + mOperationExecuted);
                mCountDownLatch.countDown();
            }
        }
@@ -108,7 +107,6 @@ public class CancelFromNotificationUiTest extends ActivityTest<FilesActivity> {

        mOperationExecuted = false;
        mErrorReason = "No response from Notification";
        Log.i(TAG, "Initializing mOperationExecuted.");
        mCountDownLatch = new CountDownLatch(1);
    }