[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
This commit is contained in:
Bonian Chen
2022-12-19 14:41:50 +00:00
parent 850f857ce5
commit 47a8010a52

View File

@@ -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);
}
}