proper tear-down
This commit is contained in:
parent
27e897fa79
commit
03b37adc3c
2 changed files with 6 additions and 2 deletions
|
@ -56,7 +56,7 @@ public class PassImportActivity extends ActionBarActivity {
|
||||||
store.setCurrentPass(store.getPassbookForId(id));
|
store.setCurrentPass(store.getPassbookForId(id));
|
||||||
|
|
||||||
AXT.at(PassImportActivity.this).startCommonIntent().activityFromClass(PassViewActivity.class);
|
AXT.at(PassImportActivity.this).startCommonIntent().activityFromClass(PassViewActivity.class);
|
||||||
|
finish();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class UnzipPassDialog {
|
||||||
if (activity.isFinishing()) {
|
if (activity.isFinishing()) {
|
||||||
return; // no need to act any more ..
|
return; // no need to act any more ..
|
||||||
}
|
}
|
||||||
ProgressDialog dialog = ProgressDialog.show(activity, "", "Opening the Passbook. Please wait...", true);
|
final ProgressDialog dialog = ProgressDialog.show(activity, "", "Opening the Passbook. Please wait...", true);
|
||||||
|
|
||||||
class AlertDialogUpdater implements Runnable {
|
class AlertDialogUpdater implements Runnable {
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ public class UnzipPassDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void call(final String pathToPassbook) {
|
public void call(final String pathToPassbook) {
|
||||||
|
dialog.dismiss();
|
||||||
activity.runOnUiThread(new Runnable() {
|
activity.runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -64,6 +65,9 @@ public class UnzipPassDialog {
|
||||||
activity.runOnUiThread(new Runnable() {
|
activity.runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (dialog.isShowing()) {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
if (myProgress.isShowing()) {
|
if (myProgress.isShowing()) {
|
||||||
myProgress.dismiss();
|
myProgress.dismiss();
|
||||||
// TODO - check if it would be good to inform the user in another way
|
// TODO - check if it would be good to inform the user in another way
|
||||||
|
|
Loading…
Reference in a new issue