package com.google.firebase.quickstart.auth;

import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity {

    private ProgressDialog mProgressDialog;

    public void showProgressDialog() {
        if (mProgressDialog == null) {
            mProgressDialog = new ProgressDialog(this);
            mProgressDialog.setMessage(getString(R.string.loading));
            mProgressDialog.setIndeterminate(true);
        }

        mProgressDialog.show();
    }

    public void hideProgressDialog() {
        if (mProgressDialog != null && mProgressDialog.isShowing()) {
            mProgressDialog.hide();
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        hideProgressDialog();
    }

}

@@ -666,20 +666,23 @@
 sDialog.
-hide
+dismiss
 ();%0A    
@@ -726,23 +726,20 @@
  void on
-Destroy
+Stop
 () %7B%0A   
@@ -755,15 +755,12 @@
 r.on
-Destroy
+Stop
 ();%0A

Fix leaking ProgressDialog