4ded4c1e36b74009a7fef0c66dbdde62349068d1 |
|
23-Jun-2017 |
Doris Ling <dling@google.com> |
Fix issue for Preference.setSingleLineTitle() has no effect. The flag to check whether the single line title attribute is initialized only when we processed the layout attributes. When the attribute is not set in the layout, but set through the setter method, the flag is not being updated properly, and hence the title view is not set correctly. Need to update the flag as well when the setter method is called. Bug: 62947301 Test: ./gradlew support-preference-v7:connectedCheck --info --daemon Change-Id: Ie05e2b75f4eb5e85ed0ba4df33c93510a9d5a14f
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/PreferenceSingleLineTitleTest.java
|