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

Commit 4c0f1429 authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "[Expressive design] some widgets should not be round corner" into main

parents 81490c16 151f49a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ import com.google.android.material.button.MaterialButton;
/**
 * A preference handled a button
 */
public class ButtonPreference extends Preference {
public class ButtonPreference extends Preference implements GroupSectionDividerMixin {

    enum ButtonStyle {
        FILLED_NORMAL(0, 0, R.layout.settingslib_expressive_button_filled),
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ import java.net.URISyntaxException;
 * A custom preference acting as "footer" of a page. It has a field for icon and text. It is added
 * to screen as the last preference.
 */
public class FooterPreference extends Preference {
public class FooterPreference extends Preference implements GroupSectionDividerMixin {
    private static final String TAG = "FooterPreference";

    public static final String KEY_FOOTER = "footer_preference";
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class StatusBannerPreference @JvmOverloads constructor(
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0,
    defStyleRes: Int = 0
) : Preference(context, attrs, defStyleAttr, defStyleRes) {
) : Preference(context, attrs, defStyleAttr, defStyleRes), GroupSectionDividerMixin {

    enum class BannerStatus {
        GENERIC,
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ open class TopIntroPreference @JvmOverloads constructor(
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0,
    defStyleRes: Int = 0
) : Preference(context, attrs, defStyleAttr, defStyleRes) {
) : Preference(context, attrs, defStyleAttr, defStyleRes), GroupSectionDividerMixin {

    private var isCollapsable: Boolean = false
    private var minLines: Int = 2