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

Commit ade026f7 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Avoid launching dialogs twice from double-clicking a preference.

Bug: 6500628

Only create the dialog if another one doesn't already exist.

Change-Id: Ie9be06a58c369299bcb67526e668785e6735a307
parent a0e0d580
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -261,6 +261,8 @@ public abstract class DialogPreference extends Preference implements
    
    @Override
    protected void onClick() {
        if (mDialog != null && mDialog.isShowing()) return;

        showDialog(null);
    }