Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
罗孟伟 committed Dec 15, 2019
1 parent 7ef4331 commit 6f7be22
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import android.os.Message;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;

import androidx.annotation.NonNull;
Expand Down Expand Up @@ -259,6 +260,9 @@ protected void showPleaseDialog() {
if (mLoadingDialog == null) {
mLoadingDialog = new PictureLoadingDialog(getContext());
}
if (mLoadingDialog.isShowing()) {
mLoadingDialog.dismiss();
}
mLoadingDialog.show();
}
}
Expand Down Expand Up @@ -602,7 +606,9 @@ protected LocalMediaFolder getImageFolder(String path, List<LocalMediaFolder> im
protected void onResult(List<LocalMedia> images) {
boolean isAndroidQ = SdkVersionUtils.checkedAndroid_Q();
if (isAndroidQ && config.isAndroidQTransform) {
mHandler.postDelayed(() -> showPleaseDialog(), isPreviewLoading ? 30 : 0);
if (!config.isCompress) {
mHandler.postDelayed(() -> showPleaseDialog(), isPreviewLoading ? 30 : 0);
}
onResultToAndroidAsy(images);
} else {
dismissDialog();
Expand Down

0 comments on commit 6f7be22

Please sign in to comment.