From 47a8010a525549bde7a7e9f26e8b420b60440fbc Mon Sep 17 00:00:00 2001 From: Bonian Chen Date: Mon, 19 Dec 2022 14:41:50 +0000 Subject: [PATCH] [Settings] Extend CustomDialogPreferenceCompat class CustomDialogPreferenceCompat is an abstract class, which not allowing creating a dialog directly. This is a class to enable constructing it as a generic class. Bug: 260540995 Test: presubmit build pass Change-Id: I1353bb92b353d6d27206574fd8f5499742ad3994 --- .../telephony/TelephonyPreferenceDialog.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/com/android/settings/network/telephony/TelephonyPreferenceDialog.java diff --git a/src/com/android/settings/network/telephony/TelephonyPreferenceDialog.java b/src/com/android/settings/network/telephony/TelephonyPreferenceDialog.java new file mode 100644 index 00000000000..7dbef0c9de5 --- /dev/null +++ b/src/com/android/settings/network/telephony/TelephonyPreferenceDialog.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.settings.network.telephony; + +import android.content.Context; +import android.util.AttributeSet; +import com.android.settingslib.CustomDialogPreferenceCompat; + +/** + * This is DialogPreference for supporting connectivity features. + */ +public class TelephonyPreferenceDialog extends CustomDialogPreferenceCompat { + + public TelephonyPreferenceDialog(Context context, AttributeSet attrs, int defStyleAttr, + int defStyleRes) { + super(context, attrs, defStyleAttr, defStyleRes); + } + + public TelephonyPreferenceDialog(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + public TelephonyPreferenceDialog(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public TelephonyPreferenceDialog(Context context) { + super(context); + } +}