Loading src/com/android/settings/TetherSettings.java +10 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,16 @@ public class TetherSettings extends SettingsPreferenceFragment com.android.internal.R.array.config_mobile_hotspot_provision_app); } @Override public void onDestroy() { BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); BluetoothProfile profile = mBluetoothPan.getAndSet(null); if (profile != null && adapter != null) { adapter.closeProfileProxy(BluetoothProfile.PAN, profile); } super.onDestroy(); } @Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putInt(TETHER_CHOICE, mTetherChoice); Loading Loading
src/com/android/settings/TetherSettings.java +10 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,16 @@ public class TetherSettings extends SettingsPreferenceFragment com.android.internal.R.array.config_mobile_hotspot_provision_app); } @Override public void onDestroy() { BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); BluetoothProfile profile = mBluetoothPan.getAndSet(null); if (profile != null && adapter != null) { adapter.closeProfileProxy(BluetoothProfile.PAN, profile); } super.onDestroy(); } @Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putInt(TETHER_CHOICE, mTetherChoice); Loading