Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Remove scan successful sound and fix a setting does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
velitasali committed Feb 23, 2018
1 parent ebb2655 commit 2079ea8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,13 @@ private void requestQRScan()
{
mQRScanRequested = false;

IntentIntegrator integrator = new IntentIntegrator(this);
integrator.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES);
integrator.setPrompt(getString(R.string.text_scanQRCodeHelp));
integrator.setOrientationLocked(false);
integrator.setBarcodeImageEnabled(true);
IntentIntegrator integrator = new IntentIntegrator(this)
.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES)
.setPrompt(getString(R.string.text_scanQRCodeHelp))
.setOrientationLocked(false)
.setBarcodeImageEnabled(true)
.setBeepEnabled(false);

integrator.initiateScan();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ public void setupHotspot()
{
boolean isEnabled = !getHotspotUtils().isEnabled();

if (mHotspotUtils.isStarted()
&& getNotificationHelper().getUtils()
if (getNotificationHelper().getUtils()
.getPreferences()
.getBoolean("hotspot_trust", false))
.getBoolean("hotspot_trust", false)
&& (mHotspotUtils.isStarted() || isEnabled))
updateServiceState(isEnabled);

if (isEnabled)
Expand Down

0 comments on commit 2079ea8

Please sign in to comment.