Make preference title align after icon
- Running service should use app preference layout. - RestrictedDropdownPreference should use preference layout. - Tweek Storage item icon padding - Wifi calling should use Prefernce - In Open by default page, if there is no vierfied link, we should hide the checkbox. Bug: 186069482 Test: manual Change-Id: Icc186ad79fc2bcf7ecd9c1ebba747bdad2d9b9ad Merged-In: Icc186ad79fc2bcf7ecd9c1ebba747bdad2d9b9ad
This commit is contained in:
@@ -26,6 +26,6 @@
|
||||
android:visibility="invisible"
|
||||
android:layout_marginStart="@dimen/preference_no_icon_padding_start"/>
|
||||
|
||||
<include layout="@layout/preference_material" />
|
||||
<include layout="@layout/settingslib_preference" />
|
||||
|
||||
</FrameLayout>
|
@@ -31,5 +31,5 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_toStartOf="@id/widget_summary"
|
||||
layout="@layout/preference_material"/>
|
||||
layout="@layout/preference_app"/>
|
||||
</RelativeLayout>
|
@@ -35,22 +35,7 @@
|
||||
android:clipToPadding="false"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/icon_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start|center_vertical"
|
||||
android:minWidth="56dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp">
|
||||
<com.android.internal.widget.PreferenceImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"/>
|
||||
</LinearLayout>
|
||||
<include layout="@layout/settingslib_icon_frame"/>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@@ -59,6 +59,7 @@
|
||||
<style name="SettingsMultiSelectListPreference" parent="@style/Preference.Material">
|
||||
<item name="android:positiveButtonText">@android:string/ok</item>
|
||||
<item name="android:negativeButtonText">@android:string/cancel</item>
|
||||
<item name="iconSpaceReserved">@bool/settingslib_config_icon_space_reserved</item>
|
||||
</style>
|
||||
|
||||
<style name="SettingsPreferenceFragmentStyle" parent="@style/PreferenceFragment.Material">
|
||||
|
@@ -162,7 +162,7 @@
|
||||
android:title="@string/call_category"
|
||||
settings:controller="com.android.settings.network.telephony.CallingPreferenceCategoryController">
|
||||
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="wifi_calling"
|
||||
android:title="@string/wifi_calling_settings_title"
|
||||
android:summary="@string/wifi_calling_summary"
|
||||
@@ -172,7 +172,7 @@
|
||||
android:targetClass="com.android.settings.Settings$WifiCallingSettingsActivity">
|
||||
<extra android:name="show_drawer_menu" android:value="true"/>
|
||||
</intent>
|
||||
</PreferenceScreen>
|
||||
</Preference>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="video_calling_key"
|
||||
|
@@ -89,7 +89,7 @@ public class VerifiedLinksPreference extends TwoTargetPreference {
|
||||
CheckBox checkBox = (CheckBox) view.findViewById(com.android.internal.R.id.checkbox);
|
||||
if (checkBox != null) {
|
||||
checkBox.setChecked(true);
|
||||
checkBox.setVisibility(mShowCheckBox ? View.VISIBLE : View.INVISIBLE);
|
||||
checkboxContainer.setVisibility(mShowCheckBox ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user