Files
app_Settings/src/com/android/settings
ot904699 aa76620073 Fix USB OTG hot plug out nndexOutOfBoundsException
Open Settings, then open Storage , plug in USB OTG with Disk, select Disk, open Files, play a video, press the back key, hot plug out USB OTG, the IndexOutOfBoundsException will happen

The root cause is when received the onVolumeStateChanged in StorageEventListener in StorageDashboardFragment, the volumeInfo
status is VolumeInfo.STATE_UNMOUNTED or VolumeInfo.STATE_EJECTING, mSelectedStorageEntry set to changedStorageEntry, cause the fail.

This is a fix for CL 225095144 bug.

Bug: 247737688
Test: Manual

Change-Id: I9535c49d65c42a8dfa8ccf4e271ae973d944d4b9
2022-09-26 08:15:48 +00:00
..
2022-06-01 06:40:07 +00:00
2022-05-06 09:34:54 +01:00
2022-05-12 18:25:06 -07:00
2022-09-05 11:29:42 +02:00
2022-09-07 10:26:39 +08:00
2022-06-16 10:46:07 +08:00
2022-04-25 15:34:42 +08:00