Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ public class BluetoothUtils { context.getContentResolver().takePersistableUriPermission(iconUri, Intent.FLAG_GRANT_READ_URI_PERMISSION); } catch (SecurityException e) { Log.e(TAG, "Failed to take persistable permission for: " + iconUri); Log.e(TAG, "Failed to take persistable permission for: " + iconUri, e); } try { final Bitmap bitmap = MediaStore.Images.Media.getBitmap( Loading @@ -165,6 +165,8 @@ public class BluetoothUtils { } } catch (IOException e) { Log.e(TAG, "Failed to get drawable for: " + iconUri, e); } catch (SecurityException e) { Log.e(TAG, "Failed to get permission for: " + iconUri, e); } } } Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ public class BluetoothUtils { context.getContentResolver().takePersistableUriPermission(iconUri, Intent.FLAG_GRANT_READ_URI_PERMISSION); } catch (SecurityException e) { Log.e(TAG, "Failed to take persistable permission for: " + iconUri); Log.e(TAG, "Failed to take persistable permission for: " + iconUri, e); } try { final Bitmap bitmap = MediaStore.Images.Media.getBitmap( Loading @@ -165,6 +165,8 @@ public class BluetoothUtils { } } catch (IOException e) { Log.e(TAG, "Failed to get drawable for: " + iconUri, e); } catch (SecurityException e) { Log.e(TAG, "Failed to get permission for: " + iconUri, e); } } } Loading