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

Commit 15471852 authored by Joel Galenson's avatar Joel Galenson
Browse files

Check flag to see whether to show accessibility usage dialog.

Test: Manually set/unset flag, see/don't see dialog.
Change-Id: Iba5894b0796ff379e5dae2e8589c6a49867edd4e
parent f5b3ea16
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,6 +50,10 @@ public final class ReviewAccessibilityServicesActivity extends FragmentActivity
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (!Utils.isPermissionsHubEnabled()) {
            return;
        }

        new AlertDialog.Builder(this)
                .setView(createDialogView())
                .setPositiveButton(R.string.ok, null)