This commit is contained in:
Alexey Kulish 2016-11-07 18:44:02 +03:00
parent e203fd6aca
commit 0bbdf8353c

View file

@ -463,9 +463,13 @@ public class DashChooseAppDirFragment {
Toast.makeText(ctx, R.string.shared_string_io_error, Toast.LENGTH_LONG).show(); Toast.makeText(ctx, R.string.shared_string_io_error, Toast.LENGTH_LONG).show();
} }
} }
if(progress.getDialog().isShowing()) { try {
if (progress.getDialog().isShowing()) {
progress.getDialog().dismiss(); progress.getDialog().dismiss();
} }
} catch (Exception e) {
//ignored
}
} }
private void movingFiles(File f, File t, int depth) throws IOException { private void movingFiles(File f, File t, int depth) throws IOException {
@ -541,9 +545,13 @@ public class DashChooseAppDirFragment {
@Override @Override
protected void onPostExecute(Boolean result) { protected void onPostExecute(Boolean result) {
try {
if (progress.getDialog().isShowing()) { if (progress.getDialog().isShowing()) {
progress.getDialog().dismiss(); progress.getDialog().dismiss();
} }
} catch (Exception e) {
//ignored
}
} }
@Override @Override