summaryrefslogtreecommitdiff
path: root/src/com/android/settings/inputmethod/PhysicalKeyboardPreferenceController.java
AgeCommit message (Collapse)Author
2018-08-28Sort importsFan Zhang
Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
2018-06-18Reorder and clean up imports.Fan Zhang
Test: rebuild Change-Id: I178485c84ae7146f991fd77b6d7504b029942a68
2018-05-02Use ListFormatter to join stringsjyhshiangwang
Currently in Settings we are using R.string.join_many_items_first, R.string.join_many_items_middle and R.string.join_many_items_last to manually join strings. The join code is messy and the joined string is incorrect in some languages, so we migrate all string join to just use ListFormatter.getInstance().format(). Bug: b/78248791 Test: robotests Change-Id: I898339978e6e2027587e28994b0280fa46821fd6
2018-04-23Create a new string for keyboard disconnected stateFan Zhang
Change-Id: I454bbb3b8e0ee22c0f7a5a340b86dfd5607de86e Fixes: 77957016 Test: robotests
2018-04-20Migrate Settings to androidx.Aurimas Liutikas
Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-03-09Reenable pre-N style hard keyboard layout settingsYohei Yukawa
This CL logically reverts Settings app changes for Bug 25752812, which aimed to improve UX by tightly integrating physical keyboard layout with input method subtype. What went wrong is that the concept of input method subtype is not widely accepted by the ecosystem actually. Until we figoure out any other better way here, let's revert back to the good old way that enables users to specify multiple keyboard layouts per physical keyboard device, not one layout per one input method subtype. Note that we cannot simply revert the CL that originally introduced the new flow [1] because it was indeed a huge CL that also touched IME settings, which we want to continue using. In that sense, this CL is a kind of re-implementation of the previous style on top of the recent language settings flow. Note also that a fix [2] fox Bug 25062009 was also ported from previous InputMethodAndLanguageSetting to KeyboardLayoutPickerFragment. [1]: I728d7ee185827ed328c16cb7abce244557a26518 976bb3f45915bdd5165d9a50402d4c1163dae809 [2]: I4483dfc89afc8d148b2cfa7c6a5f66d2a02f712a 17b631988451613393c4656900c1821e23d8434a Fix: 66498367 Test: make -j RunSettingsRoboTests Test: Manually done with two Bluetooth keyboards Change-Id: I7a2ed6dd39dcd8207d3d94e12cd01d5d67ba4bb5
2018-02-02Merge "Fix memory leak of page "Languages & input"" am: f94ff6ce6f am: ↵Jin Dong
6d55e0633e am: dd91556778 Change-Id: I5fb3f956aab62b5500bfa5d753061980371b41b5
2018-01-30Fix memory leak of page "Languages & input"Jin Dong
When enter/exit from "Languages & input" screen repeatedly, memory leak happens since InputDeviceListener is not unregistered. Listener registration is called in onPause() when exiting from the screen, but new activity is created when enter the screen and the listener registered by previous activity is not unregistered in onResume(). Bug: 72675680 Test: Manual - Repeat enter and exit "Language & input" page for several times and check if the count of activity doesn't increase. Change-Id: I8e0be0ab4b1d13d53c3868b10f409d1e06387c2f
2018-01-10Introduce boolean flags to show/hide items for Language & input.Ben Lin
This adds seven new boolean flags: config_show_phone_language config_show_virtual_keyboard_pref config_show_physical_keyboard_pref config_show_spellcheckers_settings config_show_tts_settings_summary config_show_pointer_speed config_show_vibrate_input_devices Which when individually set to false, will hide the item from "Language & input" in System. It will also hide them from surfacing in search results. Bug: 62379555 Test: Individual controller tests are all updated. Change-Id: I9ef1c3037b0bec6ffa5a627006507f4f16e534c4
2017-06-26Make PreferenceController a mixinTony Mantler
Bug: 62912136 Test: Existing tests in BaseSearchIndexProviderTest Change-Id: Ieda359806c09a019840b2005446c7ec8b61fdb00
2017-05-12Depend on SettingsLib's version of lifecycle and FooterMixin.Juan Lang
The implementations have been imported into SettingsLib. Setting's copy can now be removed, which this change also does. Test: Manually check battery status, which uses FooterMixin, looks OK. make RunSettingsLibRobotTests && make RunSettingsRoboTests && make RunSettingsGoogleRoboTests Change-Id: I6539605fdad80d156ff5ff249e68df4a1c412067
2017-03-25Misc fixes for items under system settingFan Zhang
- Show summary under virtual keyboard: list all avaiable keyboards - Set about phone subtext to device model string. - Update DND Suggestion text Change-Id: I20acffcf691d1354c7636f5851b376099844700f Fix: 35959817 Fix: 36395109 Test: robotests