From acbd60285f8a51eab4d3014cc26444559235059d Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Wed, 31 Mar 2021 17:44:39 +0800 Subject: [PATCH] Add positive button into regulatory info dialog Based on UX decision to add the positive button into regulatory info dialog to exit. Bug: 180558322 Test: visual Change-Id: I0939ec11d140b5df6d4104042cc376b5c07f12e4 --- src/com/android/settings/RegulatoryInfoDisplayActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/RegulatoryInfoDisplayActivity.java b/src/com/android/settings/RegulatoryInfoDisplayActivity.java index 20aafc2194f..8f650511a4d 100644 --- a/src/com/android/settings/RegulatoryInfoDisplayActivity.java +++ b/src/com/android/settings/RegulatoryInfoDisplayActivity.java @@ -62,7 +62,8 @@ public class RegulatoryInfoDisplayActivity extends Activity implements super.onCreate(savedInstanceState); AlertDialog.Builder builder = new AlertDialog.Builder(this) .setTitle(R.string.regulatory_labels) - .setOnDismissListener(this); + .setOnDismissListener(this) + .setPositiveButton(android.R.string.ok, null /* onClickListener */); boolean regulatoryInfoDrawableExists = false;