Workaround crash in debug activity
(when progress dialog is visible and changing orientation)
This commit is contained in:
parent
0596c80381
commit
7aa900ce82
|
@ -216,10 +216,15 @@
|
|||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!--
|
||||
forcing the DebugActivity to portrait mode avoids crashes with the progress
|
||||
dialog when changing orientation
|
||||
-->
|
||||
<activity
|
||||
android:name=".activities.DebugActivity"
|
||||
android:label="@string/title_activity_debug"
|
||||
android:parentActivityName=".activities.ControlCenter"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateHidden" />
|
||||
<activity
|
||||
android:name=".activities.DiscoveryActivity"
|
||||
|
|
|
@ -317,7 +317,7 @@ public class DebugActivity extends GBActivity {
|
|||
return;
|
||||
}
|
||||
try (DBHandler targetHandler = GBApplication.acquireDB()) {
|
||||
final ProgressDialog progress = ProgressDialog.show(DebugActivity.this, "Importing Activity Data", "Please wait while merging your activity data...", true, false);
|
||||
final ProgressDialog progress = ProgressDialog.show(DebugActivity.this, "Merging Activity Data", "Please wait while merging your activity data...", true, false);
|
||||
new AsyncTask<Object,ProgressDialog,Object>() {
|
||||
@Override
|
||||
protected Object doInBackground(Object[] params) {
|
||||
|
|
Loading…
Reference in New Issue