OPP: Prevent sending intent while orientation change
Steps: 1. Take any photo/picture and share it via Bluetooth 2. Before choosing remote device in Device Picker Activity, rotate the device. Expected result: File transfer should complete after selecting the device. Actual result: The dialog "Bluetooth share: File Unknown file not sent" is shown and file sharing fails. Fix: Add configuration related check in manifest to avoid activity restart during orientation change. Test: File transferred successfully after step 2 Fixes: 72715713 Change-Id: I045c2940d3788059c9313e5501a7957608d8879c
This commit is contained in:
committed by
Hansong Zhang
parent
f5848d0f4d
commit
3483fc3638
@@ -432,6 +432,7 @@
|
|||||||
|
|
||||||
<activity android:name=".bluetooth.DevicePickerActivity"
|
<activity android:name=".bluetooth.DevicePickerActivity"
|
||||||
android:label="@string/device_picker"
|
android:label="@string/device_picker"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:clearTaskOnLaunch="true">
|
android:clearTaskOnLaunch="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.bluetooth.devicepicker.action.LAUNCH" />
|
<action android:name="android.bluetooth.devicepicker.action.LAUNCH" />
|
||||||
|
Reference in New Issue
Block a user