mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Make sure dialog is showing before dismissing
This commit is contained in:
parent
e89ec17c9f
commit
4c8a98d169
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ public class MainActivity extends SyncthingActivity
|
|||
}
|
||||
|
||||
private void dismissDisabledDialog() {
|
||||
if (mDisabledDialog != null) {
|
||||
if (mDisabledDialog != null && mDisabledDialog.isShowing()) {
|
||||
mDisabledDialog.dismiss();
|
||||
mDisabledDialog = null;
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ public abstract class SyncthingActivity extends ToolbarBindingActivity implement
|
|||
}
|
||||
|
||||
private void dismissLoadingDialog() {
|
||||
if (mLoadingDialog != null) {
|
||||
if (mLoadingDialog != null && mLoadingDialog.isShowing()) {
|
||||
mLoadingDialog.dismiss();
|
||||
mLoadingDialog = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue