OSDN Git Service

Move these radio buttons to the left
authorJohn Li <lijohn@google.com>
Tue, 27 Mar 2018 08:16:55 +0000 (16:16 +0800)
committerJohn Li <lijohn@google.com>
Mon, 9 Apr 2018 04:10:59 +0000 (12:10 +0800)
commit2df5a0b322935de5916b05eb9fb29b9883eae1d4
tree7635762a61adda610767ba17617f8f6a42e2ed78
parent85c34077d3f9fc42dbb98aca68a24f8345434e6c
Move these radio buttons to the left

Assign new single layout to RadioButtonPreference for w/ or w/o icon
and call setIconSpaceReserved(false) in RadioButtonPreference's
constructor. In case of having icon, calling setIcon() can make
icon_frame visible.

Bug: 70850017
Test: m -j56 SettingsRoboTests RunSettingsRoboTests
Change-Id: I8b35f75b6d8114a5e4c69ec1a3287c55e764ffe0
res/layout/preference_radio.xml [new file with mode: 0644]
src/com/android/settings/applications/defaultapps/DefaultAppPickerFragment.java
src/com/android/settings/widget/RadioButtonPreference.java
tests/robotests/src/com/android/settings/applications/defaultapps/DefaultAppPickerFragmentTest.java
tests/robotests/src/com/android/settings/widget/RadioButtonPreferenceTest.java