summaryrefslogtreecommitdiff
path: root/src/com/android/settings/print/PrintSettingPreferenceController.java
AgeCommit message (Collapse)Author
2020-10-12Fix crash on "Connection preferences"Hugh Chen
This CL adds a null check condition to avoid crash for some device not support PrintManager. Bug: 159848003 Test: make -j42 SettingsGoogle Change-Id: Ic6c4c17bb563458f4f5a61dc0d93ae22b05f8763
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-09Establish permanently unavailable settingsMatthew Fritze
Distinguish between settings which are permanently unavailable on the device, and temporarily unavailable. This enables us to restrict which setting slices are exposed in onSliceGetDescendants. The primary changes in this CL are renaming: "DISABLED_UNSUPPORTED" -> "UNSUPPORTED_ON_DEVICE" to be more clear the the setting will cannot be accessed on the device, and, adding a new enum to encapsulate settings which are currently unavailable, but could be enabled in the future. Also remove UNAVAILABLE_UNKNOWN. Devs should never need this enum. Bug: 78910582 Bug: 79245656 Test: robotests Change-Id: I58821a6cfd6134b3b351657b6edf5f74ead00643
2018-04-20Migrate Settings to androidx.Aurimas Liutikas
Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-03-30Remove more wrappers in favor of new Robolectric supportFan Zhang
Bug: 76167422 Test: robotests Change-Id: Ic71a181bee6f90f25f9fa2a748cf708887495394
2018-02-28Remove custom updateState() if it's just setting summaryFan Zhang
Change-Id: I6311d67d6ba11961a6814b91dcd8e37a2e17df40 Fixes: 73950519 Test: rerun robotests
2018-02-27Change PreferenceController#getSummary return type.Fan Zhang
Return CharSequence instead of String. All user visible string should be modeled as CharSequence. Bug: 73950519 Test: robotest Change-Id: I30befef0c33f94351d4a2774e283bd1ed804aa8b
2018-02-21Add policy disclosure for printing.Vladislav Kuzkokov
Bug: 64140119 Test: make -j40 RunSettingsRoboTests Change-Id: Ib453c492f1dc9e6f9bd4019104dfd3eafcd0a8b4
2018-02-12Change print setting from a dynamic tile to static prefFan Zhang
...because dynamic tile is a lot harder to index correctly. - Removed metadata that makes PrintSettings a dynamic tile. - Added PrintSettings into connected_device xml. - Added a new PreferenceController - all summary updating logic is copied from PrintSettingsFragment Change-Id: I41e7c9d23e97ecd5a043ac7c33f2d404260c92e7 Fixes: 73128944 Test: robotests