Merge "Fix bug 5614962 - Constant spinning wheel in USB Mass Storage screen (UX)" into ics-mr1
This commit is contained in:
@ -67,7 +67,8 @@
|
|||||||
|
|
||||||
|
|
||||||
<activity android:name=".usb.UsbStorageActivity"
|
<activity android:name=".usb.UsbStorageActivity"
|
||||||
android:excludeFromRecents="true">
|
android:label="@*android:string/usb_storage_activity_title"
|
||||||
|
android:excludeFromRecents="true">
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="com.android.internal.app.ExternalMediaFormatActivity"
|
<activity android:name="com.android.internal.app.ExternalMediaFormatActivity"
|
||||||
android:theme="@*android:style/Theme.Dialog.Alert"
|
android:theme="@*android:style/Theme.Dialog.Alert"
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
@ -114,16 +114,11 @@ public class UsbStorageActivity extends Activity
|
|||||||
thr.start();
|
thr.start();
|
||||||
mAsyncStorageHandler = new Handler(thr.getLooper());
|
mAsyncStorageHandler = new Handler(thr.getLooper());
|
||||||
|
|
||||||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
|
||||||
setProgressBarIndeterminateVisibility(true);
|
|
||||||
|
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
||||||
if (Environment.isExternalStorageRemovable()) {
|
if (Environment.isExternalStorageRemovable()) {
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTitle(getString(com.android.internal.R.string.usb_storage_activity_title));
|
|
||||||
|
|
||||||
setContentView(com.android.internal.R.layout.usb_storage_activity);
|
setContentView(com.android.internal.R.layout.usb_storage_activity);
|
||||||
|
|
||||||
mIcon = (ImageView) findViewById(com.android.internal.R.id.icon);
|
mIcon = (ImageView) findViewById(com.android.internal.R.id.icon);
|
||||||
|
Reference in New Issue
Block a user