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

Commit 47a8010a authored by Bonian Chen's avatar Bonian Chen
Browse files

[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
parent 850f857c
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
/*
 * 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);
    }
}