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

Commit e842874d authored by Archi Chomal's avatar Archi Chomal Committed by Android (Google) Code Review
Browse files

Merge "UX fixes for QR code scanner QS tile" into tm-qpr-dev

parents 32c99955 5fc270c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1311,7 +1311,7 @@
    <string name="wallet_lockscreen_settings_label">Lock screen settings</string>

    <!-- QR Code Scanner label, title [CHAR LIMIT=32] -->
    <string name="qr_code_scanner_title">Scan QR code</string>
    <string name="qr_code_scanner_title">QR code scanner</string>

    <!-- Name of the work status bar icon. -->
    <string name="status_bar_work">Work profile</string>
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class QRCodeScannerTile extends QSTileImpl<QSTile.State> {
        state.label = mContext.getString(R.string.qr_code_scanner_title);
        state.contentDescription = state.label;
        state.icon = ResourceIcon.get(R.drawable.ic_qr_code_scanner);
        state.state = mQRCodeScannerController.isEnabledForQuickSettings() ? Tile.STATE_ACTIVE
        state.state = mQRCodeScannerController.isEnabledForQuickSettings() ? Tile.STATE_INACTIVE
                : Tile.STATE_UNAVAILABLE;
    }

+1 −1
Original line number Diff line number Diff line
@@ -119,6 +119,6 @@ public class QRCodeScannerTileTest extends SysuiTestCase {
        when(mController.isEnabledForQuickSettings()).thenReturn(true);
        QSTile.State state = new QSTile.State();
        mTile.handleUpdateState(state, null);
        assertEquals(state.state, Tile.STATE_ACTIVE);
        assertEquals(state.state, Tile.STATE_INACTIVE);
    }
}