Fixed a crash when sharing video through Bluetooth.
+ Fixed an issue where Settings would crash when the user tries to share a youtube video through Bluetooth and rotates the screen. Bug: 17023413 Change-Id: Ied284da736cf9bfc7424982a516c8305c700dd0b
This commit is contained in:
@@ -58,8 +58,6 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
|||||||
private static final String KEY_UNPAIR = "unpair";
|
private static final String KEY_UNPAIR = "unpair";
|
||||||
private static final String KEY_PBAP_SERVER = "PBAP Server";
|
private static final String KEY_PBAP_SERVER = "PBAP Server";
|
||||||
|
|
||||||
public static final String EXTRA_DEVICE = "device";
|
|
||||||
|
|
||||||
private CachedBluetoothDevice mCachedDevice;
|
private CachedBluetoothDevice mCachedDevice;
|
||||||
private LocalBluetoothManager mManager;
|
private LocalBluetoothManager mManager;
|
||||||
private LocalBluetoothProfileManager mProfileManager;
|
private LocalBluetoothProfileManager mProfileManager;
|
||||||
@@ -102,7 +100,6 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
|||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(Bundle outState) {
|
public void onSaveInstanceState(Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
outState.putParcelable(EXTRA_DEVICE, mCachedDevice.getDevice());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user