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

Commit 7594d78c authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Check for cases before clearing dialog." into lmp-mr1-dev

parents e23b42bd 1d4cd7cf
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)