Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96989716 authored by Andrew Lee's avatar Andrew Lee Committed by Android Git Automerger
Browse files

am 7594d78c: Merge "Check for cases before clearing dialog." into lmp-mr1-dev

* commit '7594d78c':
  Check for cases before clearing dialog.
parents 7bf7d32d 7594d78c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -67,8 +67,14 @@ public class ClearCallLogDialog extends DialogFragment {
                    }
                    @Override
                    protected void onPostExecute(Void result) {
                        if (getActivity() == null || getActivity().isDestroyed()) {
                            return;
                        }

                        if (progressDialog != null && progressDialog.isShowing()) {
                            progressDialog.dismiss();
                        }
                    }
                };
                // TODO: Once we have the API, we should configure this ProgressDialog
                // to only show up after a certain time (e.g. 150ms)