diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 0a73131441e..405acaa5e1a 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -168,9 +168,10 @@ - @@ -183,7 +184,7 @@ - + + - - = BluetoothPan.MAX_CONNECTIONS) { - new AlertDialog.Builder(this) + new AlertDialog.Builder(activity) .setIcon(android.R.drawable.ic_dialog_alert) .setTitle(R.string.bluetooth_error_title) - .setMessage(getString(R.string.bluetooth_tethering_overflow_error, + .setMessage(activity.getString(R.string.bluetooth_tethering_overflow_error, BluetoothPan.MAX_CONNECTIONS)) .setNegativeButton(android.R.string.ok, null) .create() @@ -466,6 +478,6 @@ public class BluetoothSettings extends PreferenceActivity mLaunchPackage != null && mLaunchClass != null) { intent.setClassName(mLaunchPackage, mLaunchClass); } - sendBroadcast(intent); + getActivity().sendBroadcast(intent); } }