mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1178503 - Remove nightly-only flag for QR code input. r=liuche
--HG-- extra : commitid : EMVHezunff4 extra : rebase_source : 69b9c0e6631f09239426dfc483922d7069ab53f2
This commit is contained in:
parent
cd73adcffe
commit
15adba3488
@ -831,7 +831,7 @@ OnSharedPreferenceChangeListener
|
||||
continue;
|
||||
}
|
||||
} else if (PREFS_QRCODE_ENABLED.equals(key)) {
|
||||
if (!AppConstants.NIGHTLY_BUILD || !InputOptionsUtils.supportsQrCodeReader(getApplicationContext())) {
|
||||
if (!InputOptionsUtils.supportsQrCodeReader(getApplicationContext())) {
|
||||
// Remove UI for qr code input on non nightly builds
|
||||
preferences.removePreference(pref);
|
||||
i--;
|
||||
|
@ -253,10 +253,6 @@ public class ToolbarEditLayout extends ThemedLinearLayout {
|
||||
}
|
||||
|
||||
private boolean qrCodeIsEnabled(Context context) {
|
||||
// QR code is enabled for nightly only
|
||||
if(!AppConstants.NIGHTLY_BUILD) {
|
||||
return false;
|
||||
}
|
||||
final boolean qrCodeIsSupported = InputOptionsUtils.supportsQrCodeReader(context);
|
||||
if (!qrCodeIsSupported) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user