Prevent that lost waiting dialogs block operation after tricky rotations

This commit is contained in:
David A. Velasco 2016-02-09 09:54:31 +01:00
parent 3885db5013
commit ea1e67595c

View file

@ -909,6 +909,8 @@ public class FileActivity extends AppCompatActivity
* Show loading dialog
*/
public void showLoadingDialog(String message) {
// grant that only one waiting dialog is shown
dismissLoadingDialog();
// Construct dialog
LoadingDialog loading = new LoadingDialog(message);
FragmentManager fm = getSupportFragmentManager();