Loading src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +11 −1 Original line number Diff line number Diff line Loading @@ -24,10 +24,11 @@ import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.text.TextUtils; import android.telephony.SubscriptionInfo; import android.telephony.SubscriptionManager; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.Button; Loading Loading @@ -209,6 +210,14 @@ public class BluetoothPermissionActivity extends AlertActivity implements @VisibleForTesting void sendReplyIntentToReceiver(final boolean allowed, final boolean always) { String bluetoothName; try { bluetoothName = Utils.findBluetoothPackageName(this); } catch (NameNotFoundException e) { Log.e(TAG, "Failed to find bluetooth package name", e); return; } Intent intent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); if (DEBUG) { Loading @@ -216,6 +225,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements + " mReturnPackage"); } intent.setPackage(bluetoothName); intent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT, allowed ? BluetoothDevice.CONNECTION_ACCESS_YES : BluetoothDevice.CONNECTION_ACCESS_NO); Loading Loading
src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +11 −1 Original line number Diff line number Diff line Loading @@ -24,10 +24,11 @@ import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.text.TextUtils; import android.telephony.SubscriptionInfo; import android.telephony.SubscriptionManager; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.Button; Loading Loading @@ -209,6 +210,14 @@ public class BluetoothPermissionActivity extends AlertActivity implements @VisibleForTesting void sendReplyIntentToReceiver(final boolean allowed, final boolean always) { String bluetoothName; try { bluetoothName = Utils.findBluetoothPackageName(this); } catch (NameNotFoundException e) { Log.e(TAG, "Failed to find bluetooth package name", e); return; } Intent intent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); if (DEBUG) { Loading @@ -216,6 +225,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements + " mReturnPackage"); } intent.setPackage(bluetoothName); intent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT, allowed ? BluetoothDevice.CONNECTION_ACCESS_YES : BluetoothDevice.CONNECTION_ACCESS_NO); Loading