Aggiunto try catch per catturare le eccezioni in caso di re-add del dialog di progress

This commit is contained in:
Giuseppe Scorrano 2024-02-22 15:53:42 +01:00
parent d17e528158
commit 377950c978

View File

@ -52,7 +52,11 @@ public class BaseActivity extends AppCompatActivity {
if (!progressOpened && !this.mCurrentProgress.isAdded() && !this.mCurrentProgress.isInLayout()) {
this.progressOpened = true;
runOnUiThread(() -> {
this.mCurrentProgress.show(getSupportFragmentManager(), "tag");
try {
this.mCurrentProgress.show(getSupportFragmentManager(), "tag");
} catch (IllegalStateException ise) {
//ignored
}
});
}
}