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

Commit 69cd33d6 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Fix flaky test"

parents d92fad65 837c1abc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -97,6 +97,8 @@ public class QSTileHostTest extends SysuiTestCase {
                mLooper.getLooper(),
                mPluginManager, mTunerService, mAutoTiles, mDumpController);
        setUpTileFactory();
        Settings.Secure.putStringForUser(mContext.getContentResolver(), QSTileHost.TILES_SETTING,
                "", ActivityManager.getCurrentUser());
    }

    private void setUpTileFactory() {
@@ -188,7 +190,8 @@ public class QSTileHostTest extends SysuiTestCase {
            // changed
            String newSetting = Settings.Secure.getStringForUser(getContext().getContentResolver(),
                    TILES_SETTING, ActivityManager.getCurrentUser());
            if (!previousSetting.equals(newSetting)) {
            // newSetting is not null, as it has just been set.
            if (!newSetting.equals(previousSetting)) {
                onTuningChanged(TILES_SETTING, newSetting);
            }
        }