Fixed crash reported by google pre-release report

This commit is contained in:
Graham Jones
2024-01-31 21:30:51 +00:00
parent 7071696d8d
commit 1a98e1094e

View File

@@ -304,7 +304,10 @@ public class BLEScanActivity extends ListActivity {
Log.e(TAG, "startScan - SecurityException while starting scan"); Log.e(TAG, "startScan - SecurityException while starting scan");
Toast toast = Toast.makeText(this, "ERROR Starting Scan - Security Exception", Toast.LENGTH_SHORT); Toast toast = Toast.makeText(this, "ERROR Starting Scan - Security Exception", Toast.LENGTH_SHORT);
toast.show(); toast.show();
} catch (Exception e) {
Log.e(TAG,"startScan - Exception while starting scan");
Toast toast = Toast.makeText(this, "ERROR Starting Scan", Toast.LENGTH_SHORT);
toast.show();
} }
} }