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

Commit 0355455b authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Flip the use of triangle icon on the right of settings.

Triangle will now only show up for preferences that have dialogs popup
when selected - like lists, sliders, EditTexts and Yes/No dialogs.
This is a change for the base preferences. If any subclasses override
and specify a different layout or normal preferences display a
dialog when pressed, they may not follow the new style.
parent bad80e0d
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2006 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.
-->

<!-- Layout used by DialogPreference widgets. This is inflated inside 
        android.R.layout.preference. -->
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginRight="4dip"
    android:layout_gravity="center_vertical"
    android:background="@drawable/btn_circle"
    android:src="@drawable/ic_btn_round_more" />
+2 −1
Original line number Diff line number Diff line
@@ -659,12 +659,12 @@
    </style>
    
    <style name="Preference.PreferenceScreen">
        <item name="android:widgetLayout">@android:layout/preferences</item>
    </style>

    <style name="Preference.DialogPreference">
        <item name="android:positiveButtonText">@android:string/ok</item>
        <item name="android:negativeButtonText">@android:string/cancel</item>
        <item name="android:widgetLayout">@android:layout/preference_dialog</item>
    </style>
    
    <style name="Preference.DialogPreference.YesNoPreference">
@@ -680,6 +680,7 @@
        <item name="android:ringtoneType">ringtone</item>
        <item name="android:showSilent">true</item>
        <item name="android:showDefault">true</item>
        <item name="android:widgetLayout">@android:layout/preference_dialog</item>
    </style>

    <!-- Other Misc Styles -->