History log of /packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd3f9e2a5eda32526dcc7bdbb5e772f70d38a2ac 27-Mar-2018 Jan Nordqvist <jannq@google.com> Fall back to Wi-Fi data display in data usage screen with no SIM.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I06bf78e54119819be87e15baca7e5b6a241958cb
Merged-In: I06bf78e54119819be87e15baca7e5b6a241958cb
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
3befdd2c54777f6b990f400cd158bb9f1e2fb676 21-Feb-2018 Fan Zhang <zhfan@google.com> Merge "Fix search highlight"
72456a9ea677b91389ba4ece88842b65c45d5107 20-Feb-2018 Fan Zhang <zhfan@google.com> Fix search highlight

- Fragments should not have advanced button when coming from search.

Change-Id: I10a192216b7ff702e73b791acbcc1eb1d71cb407
Fixes: 73348428
Test: robotests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b1d6c76b538860e2c1f1dd2d3e328c77b6d0668f 17-Feb-2018 Fan Zhang <zhfan@google.com> Migrate more settings to SubSettingLauncher

Bug: 73250851
Test: robotest
Change-Id: Ifc27b90d68bf4a907f169e19338e9b52ea5f9922
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
a10004661cac69622b66303f7ab76a5c3d648a77 02-Feb-2018 Fan Zhang <zhfan@google.com> Fix NPE when instantiating SettingsPreferenceFragment

Change-Id: I3997d6436f358b802dff9be307c36031f4351ab4
Fixes: 72868191
Test: robotests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
3d516e7607baf12b8f46ec91b1d4bb8672def3b5 31-Jan-2018 Fan Zhang <zhfan@google.com> Highlight row (instead of ripple) when come from search.

- Moved HighlightableAdapter to its own class
- Replaced ripple with blue background
- Bluebackground only stays for 5 seconds. After that it's replaced by
?attr/selectableBackground

Misc fixes.

- Fix NPE in UserSettings
- Update char limit on a new string

Change-Id: I4687e54e71fd7b9243f520b7630563df58be23d4
Fixes: 71715698
Fixes: 72761974
Test: robotests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
28dee1f08640c66febadf0354555f032e8b0a3bd 11-Jan-2018 Leif Hendrik Wilden <leifhendrik@google.com> Migrate to use instrumentation classes from settingslib.

Test: Compiles. Manually tested.
Change-Id: I70a6e76cc8440547746ecc008c32bd06a7de8161
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
cab0ee611d375d70a3803d857e62c745ccd98de2 22-Jan-2018 Leif Wilden <leifhendrik@google.com> Revert "Migrate to use instrumentation classes from settingslib."

This reverts commit 1546cca529bf56430332e15b05ceb6efb37e57bf.

Reason for revert: Broke fingerprint setup flow. b/72267201

Change-Id: I8321265ae64732c526325882ddea51080decddf5
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
1546cca529bf56430332e15b05ceb6efb37e57bf 11-Jan-2018 Leif Hendrik Wilden <leifhendrik@google.com> Migrate to use instrumentation classes from settingslib.

Test: Compiles. Manually tested.
Change-Id: Ie5515bb0fe3e621fc7723a9b04ba23e4bfa9c401
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
681a4cdd47aabd1c2332bd886785f28322da953f 30-Nov-2017 Fan Zhang <zhfan@google.com> Add search menu to all pages

Change-Id: I0910df3d26fe583deb70d7052bde28b64e7844a7
Fixes: 68814716
Test: robotests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
e0b0e9f9025038d72f8129606cc1f432afcb54e0 29-Nov-2017 Fan Zhang <zhfan@google.com> Refactor help menu stuff into a controller

This is a clean up to action bar menu item pattern, we will use the same
pattern to build search icon on all pages in a later change.

Bug: 68814716
Test: robotests
Change-Id: Iedd3ec263e8ccb63ed75ec7a95b28c00878b1de4
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
9ff1d79ef626b89b8e2260faf5b3f51a48adfee4 13-Nov-2017 Doris Ling <dling@google.com> Expand all preferences when launch from search.

- when the fragment is created, checks the argument to see if the extra
fragment arg key is set. If so, do not hide the preferences in the
preference screen inside the advanced button.

Change-Id: I80fa20672024fe702ed2ddab448232bdc92ce05f
Fixes: 68988454
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
9ce35ad0231d27292e6df5ebbd078947626dd3df 13-Nov-2017 Fan Zhang <zhfan@google.com> Revert "Expand all preferences when launch from search."

This reverts commit 6589a07d5915d8bcc911ddf36054549a7cc1a219.
Bug: 68988454
Fixes: 69242304

Change-Id: Iec29dbe302064a6209fbb0a8e7901c9a0f8744c0
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6589a07d5915d8bcc911ddf36054549a7cc1a219 09-Nov-2017 Doris Ling <dling@google.com> Expand all preferences when launch from search.

- when the fragment is created, checks the argument to see if the extra
fragment arg key is set. If so, do not hide the preferences in the
advanced button.

Change-Id: Id662ae1cec77edad7fcd5d6daa71929a8cb1402c
Fixes: 68988454
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
896f1b363c446366d96654e703e38dc069fef3d2 26-Jun-2017 Fan Zhang <zhfan@google.com> Reduce jank around loading view when opening data usage UI

Change-Id: I3d23d8160b046de8fe125ba0697b7b3d7786453c
Fix: 28181319
Test: robotests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4482812cb1c86d756125df7e151c2d2726e9e164 11-May-2017 Juan Lang <juanlang@google.com> Use SettingsLib's versions of Custom* classes.

Test: make RunSettingsRoboTests
Change-Id: I2584e820b72bb4672c53fd1a9f63c7f1662e0809
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
824f25320a6b06c36063ff2ac6e8e800d89a2d53 09-Jun-2017 Matthew Fritze <mfritze@google.com> Merge "Search results always highlight proper results" into oc-dev
am: 2a32cb6a33

Change-Id: I1bc6297cc75aa833184a00598f5930aa3ca114dc
33f3e3f4f7d7fa92ca5e6cb6cbb95a0fcbf9452f 07-Jun-2017 Matthew Fritze <mfritze@google.com> Search results always highlight proper results

In fragments where preferences were being injected after
the super#onResume, the incorrect preference was
being highlighted as the selected result.

This is because the index of the preference is calculated
in SettingsPreferenceFragment#onResume, but the index is
not checked again before the item is highlighted.

Instead, we calculate index right before we highlight.

Change-Id: Idaa655f682a1a6186c1996fb51d352589bbeda0f
Fixes: 62179739
Test: runtest --path packages/apps/Settings/tests/app/src/com/android/settings/SettingsPreferenceFragmentTest.java
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
2b2abac7148163dc6199b9dd304a6cebccbf310f 26-May-2017 jackqdyulei <jackqdyulei@google.com> Update updateEmptyView

Also consider the visiblity of list container, when list container
is invisible, we should show the empty view.

Bug: 62062415
Test: RunSettingsRoboTests
Change-Id: I065e70386242c425ef3cbfb2b703a5433dbe40c1
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b84b9cc8e7b5b3929ae5e90c94b9ff5ef10d3733 25-May-2017 Fan Zhang <zhfan@google.com> Merge "Recursively remove preference from screen." into oc-dev am: 7731b4244e
am: 4472d8af83

Change-Id: Ie8835c9789d959ce3d75b84b05d711f976bab56e
e84407f5c3c550395aa5929deca6a401a4e960ba 24-May-2017 Fan Zhang <zhfan@google.com> Recursively remove preference from screen.

The preference framework does not remove pref recursively. So when a
preference is nested in preference hierarchy, it's not safe to simply
call screen.removePreference(). We need to first find its parent and
remove pref from its parent.

Change-Id: Ic7fefa498ed71a8877d862845ddcc2d6d6034a55
Fix: 38507066
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
777ed2535a7fd6f618a0d12f381af99252283574 10-May-2017 Juan Lang <juanlang@google.com> Depend on SettingsLib's version of lifecycle and FooterMixin.

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
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
e6740f740ea505dc3a07bbec2861b684f30d7194 14-Apr-2017 Daniel Nishi <dhnishi@google.com> Fix a bug where options menu was not showing.

There were two issues that stopped the options menu from
showing properly. First, the SettingsPreferenceFragment did
not call its super class, causing the Lifecycle methods to
never be called. Second, the options menu was not being
invalidated which also stopped the Lifecycle methods from
being called.

Change-Id: I29f2fc105c7ecae7adaccb2e4643e48646398d8d
Fixes: 37255835
Test: Robotest
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c6ca314c0b872f75926807ca7d6eb24ebe7cb684 15-Feb-2017 Fan Zhang <zhfan@google.com> Log source with visibility change

- Add a method in VisibilityLoggerMixin to log visible event using
LogMaker, which allows logging additional FIELD_CONTEXT field.
- In Utils.startFragment, add current page's metricsCategory as an extra
to next page.
- In next page's onResume(), extract the previous page's metricsCategory
and send it to VisibilityLoggerMixin.visible()
- Update all caller with additional paramters

Change-Id: I8e1f2597fa465b7d3aa16fa1d21c052a3219694a
Fix: 35359289
Test: RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
35692cf439fe1067ea742174033f5748a08a5d66 14-Jan-2017 Fan Zhang <zhfan@google.com> Full screen default app fragment

Fix: 34280137
Test: make RunSettingsRoboTests
Change-Id: Ib44e39589781d68c7952a2c16a44682791a422f1
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
d5b48454a38cbc21efce91736ebd2895c6deae58 13-Dec-2016 Fan Zhang <zhfan@google.com> Build a new FooterPreference UI.

- Create a new layout for footer prefs.
- Create a new FooterPreference type to use the layout
- Create a Mixin to create and add the pref to screen
- Create a new lifecycle observer type to invoke mixin at right time
- Switch SettingsPreferenceFragment to use footer mixin.
- Switch FingerprintSettings to use the new footer pref.

Bug: 33579394
Test: RunSettingsRoboTests
Change-Id: I548ac39a0d120196a7ffed09b4f98bd9a80bae90
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
2d0b3447360666847c483e6ce2521846c66c25c1 06-Dec-2016 Fan Zhang <zhfan@google.com> Add InstrumentFragment for non-PreferenceFragment types.

This allows app fragment use a less heavyweight fragment as super class
if they don't need PreferenceFragment. Using this class as base is
generally easier to set up robolectric tests too.

Bug: 33354536
Test: RunSettingsRoboTests
Change-Id: I91c4d242ea0333c76c8767c03c3f18dee6b6e104
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
55cdee27381e0133ebb1be50230039a471d7d83d 13-Oct-2016 Qi Ding <qi.x.ding@sonymobile.com> Merge "Fix searched item isn't highlighted" am: 363c529dc6 am: 1d07de566d am: 85768b3723
am: 051c1b298d

Change-Id: Ib75d421f6b4a4ee97006a3427bb4b1111c5ece2f
051c1b298d8e71cd026f94e7a709ad8f752cfc69 13-Oct-2016 Qi Ding <qi.x.ding@sonymobile.com> Merge "Fix searched item isn't highlighted" am: 363c529dc6 am: 1d07de566d
am: 85768b3723

Change-Id: I7bb1c3b3a5dbb1ee4e6d8934a7be542076d1e863
c4772636db92a557dc7823c940258fc2cbb80139 18-Sep-2016 Qi Ding <qi.x.ding@sonymobile.com> Fix searched item isn't highlighted

The searched item isn't highlighted.
To fix this issue, the highlight process should be posted
as Runnable object.

Bug: 31983855
Test: manual - search a item in Settings app

Change-Id: I0dcc5bb52b2faa0a23991459885d8dfcaed0f226
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4fe7c0859f920ccb5cb63ffab7e701a0b4b5ebb9 03-Oct-2016 Fan Zhang <zhfan@google.com> Fix a NPE when rotating dialog created by DialogCreatable.

Bug: 30088727
Test: make RunSettingsRoboTests
Change-Id: I775899809dfe920daa294f70d646b141da7c0706
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
0b825f5db08006389c4602123beff72102cf21cd 27-Sep-2016 Tony Mantler <nicoya@google.com> Catch all data set changes

Test: Toggle wifi in settings
b/31649262

Change-Id: I303206f3b977707528e98dfe227b49835edc78f2
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
aa71afe5978b1340a2d702f3a75d22baf8c96348 22-Sep-2016 Fan Zhang <zhfan@google.com> Use MetricsFeatureProvider for logging in Settings.

Bug: 31664539
Test: make RunSettingsRoboTests for regression
Test: adb logcat -b events | egrep "(sysui_|notification_)" for
verifying log

Change-Id: Id944be7c4ff9911aebee481c2df485542f1318f0
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
d65184faef1076280e121c5cbc1db863f3f37924 20-Sep-2016 Fan Zhang <zhfan@google.com> Log visibility change for DialogCreatable in Settings.

Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Test: make RunSettingsRoboTests
Change-Id: I51754d258ba1ddfae24323681f21cd02de4dbb4e
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6507613ebcd22e4691c2af92a5c161bd327db336 08-Aug-2016 Fan Zhang <zhfan@google.com> Log visibility change for all fragments.

Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
bf4be77f7ef1a6c6384331d69d490794705d0e3b 05-Aug-2016 Fan Zhang <zhfan@google.com> Merge InstrumentedFragment & InstrumentedPerferenceFragment

Bug: 30642749

The 2 classes are almost identical so I'd like to just merge them if
there is no specific reason for keeping both.

Change-Id: I46af41388e25abf79066ff25bfb793cdef2e06ea
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6263c2f6d434692f4088402bde2bed0e6c9e2e80 19-Jul-2016 Jason Monk <jmonk@google.com> Merge \\"Fix crash from dismissing after pause\\" into nyc-mr1-dev am: 8cb8dd05a2
am: 44c13b223f

Change-Id: I155ca86eb959fe9b5553be59842e15639c19d4a2
8cb8dd05a247e134e230ebb9558a0a02d554e356 19-Jul-2016 Jason Monk <jmonk@google.com> Merge "Fix crash from dismissing after pause" into nyc-mr1-dev
4c5f408e2656b1352e7f71505d3eb2af2373ede1 15-Jul-2016 Jason Monk <jmonk@google.com> Merge \\"Make sure to clear out preference cache when done\\" into nyc-mr1-dev am: 9b0931e986
am: d1a54dc62a

Change-Id: I07e1c9725cd6880d7b974e318959cb746ab014b4
8a7d0744be4385cc005099da3fc1928edc24617d 15-Jul-2016 Jason Monk <jmonk@google.com> Fix crash from dismissing after pause

Change-Id: Ic9f655bff5aec5678d975389bc1f391b8d608099
Fixes: 29977187
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
db7868ef255eaf7ad2e1f7871718b9fa3cc825d5 30-Jun-2016 Jason Monk <jmonk@google.com> Make sure to clear out preference cache when done

Change-Id: I05b420dcab67622782b3c1a3971c1a5a0b74ad56
Fixes: 29314480
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
2f40b22d41a4069e8b9ae84c7696194b5ec59569 10-Jun-2016 Jason Monk <jmonk@google.com> Merge \\\"Fix crash in finish from onCreate.\\\" into nyc-dev am: 1a1f6b0b1b am: 0fa8dc1b55
am: 4d86173586

Change-Id: I342042c107ea6cf8dcdcefd9d31b53232a8440ff
656bc6004f7e7358832026c4196d02e50752ca7f 10-Jun-2016 Jason Monk <jmonk@google.com> Fix crash in finish from onCreate.

Change-Id: Ia4937fecdc93e30a468b8fefd2f8776186c8e151
Fixes: 29245324
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4a8b16323b1a3ea5b82548197c484c48bdaba4af 08-Jun-2016 Jason Monk <jmonk@google.com> resolve merge conflicts of 167f6cc to nyc-mr1-dev-plus-aosp
am: 84f544a2ae

Change-Id: I73d7ff76eae3871659063eb58d4efc849f261ac8
b7e4380cd27ffd8a060ecb61201057fb6843e408 06-Jun-2016 Jason Monk <jmonk@google.com> Remove PreferenceActivity

Its broken and isn't worth maintaining, instead port the few things
using it over to SettingsPreferenceActivity with wrapping blank
Activities like the rest of Settings.

Change-Id: Ic82f0dcb63ed9b4078f7da6a79c0c52f0130e8d1
Fixes: 28779941
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4ab0558972861cda24f5b973dd664489ed67a111 21-May-2016 Andrew Sapperstein <asapperstein@google.com> Delete a bunch of dead code and resources.

Deleted a bunch of unused colors. Also deleted the FAB
since it's never actually used, The one xml location sets the visibility
to gone and it is never changed.

Change-Id: I9424d581960ef879f6742bf8f06ac8932224c7cc
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
a627844fedb00c46eb206e2e88739e4d58cdde24 21-Apr-2016 Jason Monk <jmonk@google.com> Fix only one battery stat showing sometimes.

Take into account the prefs we are currently caching within the
group when counting how many prefs have been added.

Change-Id: I962acd41592c1a9366882711d3f4944bffb54d22
Fixes: 27931457
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
76218e54ae58dd81c3ad14f925129b80be8073c5 19-Apr-2016 Johan Redestig <johan.redestig@sonymobile.com> Fix back button on fragments without help uris

This is a follow up to 0708d9e119. The setHasOptionsMenu has
to be set for the back button to work and this needs to happen
regardles if the fragment has an help uri or not.

Bug: 28237921
Change-Id: Icec7a94312bdab5470efa0893a339d753c995eb1
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b84720c075fb2eb4bb816f34d8f3edd70e5a1653 05-Apr-2016 Suprabh Shukla <suprabh@google.com> Moving HelpUtils to SettingsLib

Moved HelpUtils to SettingsLib in frameworks/base so it can be shared by
packageinstaller as well.

Bug: b/22096093
Change-Id: I8d620abcde8279a3b4d11bbcff8ae9b6f46a1895
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
1cb12bbd604182c303756a55f500c6cfde417a54 29-Mar-2016 Jason Monk <jmonk@google.com> Fix crash when clearing preference screen

Bug: 27892359
Change-Id: I96cd167e8173bf0345c3e186fa11c2e613b63e6f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
f38fb38f26117176ba7b961e960ef5c79e28a152 18-Mar-2016 Jason Monk <jmonk@google.com> Switch to whitelist for animations

Disable animations for all SettingsPreferenceFragments, unless they
explicitly ask for them before creating their preference screens.

Turn it on for all fragments using the cached removal currently.

Bug: 27713314
Change-Id: I1bc14e7aeb3ee5b8ddb4f3547f472305cd312edf
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
2071eda150c4ade320fa91ec99678114afbd223e 25-Feb-2016 Jason Monk <jmonk@google.com> Workarounds to avoid removing all prefs

Removing all prefs causes ugly animations, so avoid it at all cost
and cache all the prefs (while still added) as long as possible.

Bug: 26271353
Change-Id: I33b84d751938b460f4b66c0158057407dd45d974
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
91e2f89b0f8b440728fe395ee02a71ae59e21ffc 23-Feb-2016 Jason Monk <jmonk@google.com> Rearrange configure/default apps

Bug: 27276982
Bug: 27279305
Change-Id: I443e9d2bc0c3fd9bcc13ee86716c14fbb55af0ba
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
d553abcb4cd4ee3682ae4e864c06514d65fcb253 17-Feb-2016 Udam Saini <udam@google.com> Moves the encryption interstitial to use the list layout

bug:27206957
Change-Id: Ib577440a2696539f44021bb4ba0100e9f1699c6c
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
384fa2e3423741137eddc26b01fcac8bc9fef2e3 04-Feb-2016 Anna Galusza <agalusza@google.com> Add Screen Zoom preview screen with settings page, launch Talkback tutorial
whenever the Talkback setting in SUW is pressed, and remove check for parent
Activity from SettingsPreferenceFragment.
Bug: 26734639

Change-Id: I5671735437844ac54ea68322838d9b6b5c81957f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6a8b99dabe7edbe173e94e76d22dd8018512b387 11-Feb-2016 Udam Saini <udam@google.com> Fixes stack overflow on some settings preferences

bug:27130222
Change-Id: If273720591ca9a4d10143b36b63eb839e4fa0a4a
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
30e9fc870fae222e00239bd42c7c14f0fd40c7c2 10-Feb-2016 Jason Monk <jmonk@google.com> Fix activity weirdness by doing the right thing

Bug: 27091837
Change-Id: I983bcae15871b184e670a6baa819263e0ad58973
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4a05b2906fdb94e11c7d3b9f249e33a81fe707e4 03-Feb-2016 Anna Galusza <agalusza@google.com> Merge "UI fixes (back arrow, blue switch bar, append whether Talkback is on to summary), Talkback no longer disabled when preference is tapped, fixes SettingsPreferenceFragment to not check parent class to determine whether to show options menu."
0285c806647ad7e84302044587b56e9d1c918b85 30-Jan-2016 Anna Galusza <agalusza@google.com> UI fixes (back arrow, blue switch bar, append whether Talkback is on to
summary), Talkback no longer disabled when preference is tapped, fixes
SettingsPreferenceFragment to not check parent class to determine whether to
show options menu.

Change-Id: I3345e1a878f51b4387ca1bfe89855339617a94d6
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
77467e04d4bd3a1be21b0f192ff98ac377dad5b8 30-Jan-2016 Jason Monk <jmonk@google.com> Fix dream settings initial state.

The empty view wasn't being updated initially by the fragment
so it was being left in an empty state since no preferences are
added after the fact.

Bug: 25609200
Change-Id: Ib9aa02ba94bf7077d01892d96d79d39203047f4d
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
a78572cf39ef2e0cb2623ba12905643e82457587 26-Jan-2016 Sudheer Shanka <sudheersai@google.com> Merge "Update the text shown when admin disabled fingerprint as unlock option."
550d068abd5a38e77507eab704ecdf1be70695cb 13-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add restricted padlock support for listpreference.

Change-Id: I1f3284a474d225df803abd57dd71382cb1dfa659
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
5590e2eb44bc8a301c8f4647b739d6788e9c1512 22-Jan-2016 Sudheer Shanka <sudheersai@google.com> Update the text shown when admin disabled fingerprint as unlock option.

When the admin has disabled fingerprint as unlock option, we let the
user know that the admin has disabled that option with a more details
link which will trigger the admin support dialog. And made some small
fixes apart from this.

Change-Id: I01021b952dc6fb29a65d37401a6411a6088d5cef
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
95a71e06eb4561c495a569b196750af5368c7525 12-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add disabled by policy message as empty views in preferencefragment.

Change-Id: I296dc02c8e5cbea74f8415f4c8c5723f85e20b5b
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b1795f554921249420bf588280396d6920541556 08-Jan-2016 Anna Galusza <agalusza@google.com> Make A11y SUW launchable from SUW and small UX changes based on last round of
UX studies.

Change-Id: I9c20cd3abf910a37731da2af604f3af2cd30e942
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b37e2887d3112082589997f1bbd802ec282cca6d 11-Jan-2016 Jason Monk <jmonk@google.com> Update data usage UX

Update the UX and dig the data usage screen out of a huge whole of
technical debt. Switch every to use Preferences rather than standard
layouts and ListViews.

Split data usage into several fragments, all separated.

DataUsageSummary:
- Shows a summary of the 'default' usage at the top, this will be
the default sim on phones, or wifi if it has it, or ethernet
as last attempt to show something.
- Also has individual categories for each network type that has
data, cell, wifi, and ethernet. Maybe should look into bt though?

DataUsageList:
- Takes a NetworkTemplate as an input, and can only be reached from
the network specific categories in DataUsageSummary
- Shows a graph of current usage for that network and links to
app detail page for any app.
- Has gear link to quick get to billing cycle screen if available

BillingCycleSettings:
- Just a screen with the cycle day and warning/limits separated
out from the data usage.

AppDataUsage:
- App specific data usage details
- May need some UX iteration given lack of clarity in the spec

Bug: 22459566
Change-Id: I0222d8d7ea7b75a9775207a6026ebbdcce8f5e46
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
65bb097732cd54121746cdb323d030f8d3105417 17-Dec-2015 Jason Monk <jmonk@google.com> Fix search highlighting items

Bug: 24576551
Change-Id: I0a6c251cc93eef9f49070f2b7e57780d4542dd03
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c03459cd05e175104c46b6530367750f0811a9f4 13-Aug-2015 Jorim Jaggi <jjaggi@google.com> am 90ca1b67: am 0cae8ad7: am e9639b1d: am 5dd0e27f: Merge "Wait with finishing until fingerprints are removed" into mnc-dr-dev

* commit '90ca1b67cfa1507126c6b74b2de059d3bf579734':
Wait with finishing until fingerprints are removed
f92fbc1c49ec09762a2ed81297002865638f37ae 11-Aug-2015 Jorim Jaggi <jjaggi@google.com> Wait with finishing until fingerprints are removed

Bug: 22863210
Change-Id: I490157cc2f9b52ac87cc52e13c7eb57cb4a4a377
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
5e76cdc9dd90624de4a59808e8fe8037786317e5 08-Jul-2015 Daichi Hirono <hirono@google.com> Turn the eject menu into a button.

BUG=21897892

Change-Id: Icd0db7907b990447c99c4ae65816e85777df0f8e
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
15dcebe1e79ad396a08873f940e2f33d432cf387 27-May-2015 Jason Monk <jmonk@google.com> Help fallbacks and intent work

- Handle a backup URI, so that if the specified URI is not available,
another can be used.
- Add some data to help intents when they are intent URIs
- Fill in the context with a classname when it isn't present

Bug: 15475009
Change-Id: I7050fa61121901929e650b20bd7a0ae21e8ba207
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
5654815695729b2145da9c560fcd7b443add0a42 30-Apr-2015 Fyodor Kupolov <fkupolov@google.com> Fixed an issue with back key behavior

Create mHeaderView and set it as a pinned header, each time onActivityCreated
is called.

Bug: 20652673
Change-Id: Ia0e174f0686ac0abb601c591f3774c9152b785fa
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
28c3f6bb71da1727fdc39bdc622518b1daeb3b0a 22-Apr-2015 Maurice Lam <yukl@google.com> [WifiSettings] Add progress bar when scanning

Add a progress bar when the Wi-Fi screen is in a transient state,
like enabling, disabling Wi-Fi and scanning for network. This change
sets the progress bar as a pinned header at the top of the activity.

The pinned header container needs to be match parent so that the
progress bar can occupy the full width of the screen. If the header
view doesn't want to fill the width, then the header view *inside*
the container should be wrap_content.

Added an overloaded setPinnedHeader method that takes a layout
resource ID, and returns the view to the caller. This way the
inflater can set the parent property so that layout params will not
be ignored.

Bug: 17389577
Change-Id: I18d0eb7c72ad31d1c4b35a54789016c32c81fb93
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b8e02b8bd003fdcd5e680c7a6b37e1797ec12cc9 16-Apr-2015 John Spurlock <jspurlock@google.com> Settings: Fabulous "Add rule" button.

Bug: 20064962
Change-Id: If7ff9d6cdfc61e5dd9e0d3bc4e2228c5fdaf9fa9
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c1235be6f00520ee18b76d5619a40ea1a99087bb 14-Apr-2015 Jason Monk <jmonk@google.com> Merge "Allow help to be defined to intent uri"
23acc2bb8af7da000d72a8c1d8c28a2792200348 14-Apr-2015 Jason Monk <jmonk@google.com> Allow help to be defined to intent uri

Allow help uris to be either an intent uri or as uri (as they were
before). Also add a default help uri, and specific helps for several
screens.

Bug: 15475009
Change-Id: Iff982892973f01d32ff61ea88d4844e9a7153500
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b5aa73f46f812ba03518a6d1ac218e3af5975236 31-Mar-2015 Jason Monk <jmonk@google.com> Fix loading screens for manage and running apps

Also add loading screen to manage permissions as this can take a
long time to load in some circumstances. Build loading screens into
Utils and SettingsPreferenceFragment so that it can be easily used
other places in the future.

Change-Id: I7febd06695487e02ced793a9fd418051b5f0eab8
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
8a963babe2e36b7a41f77b8d2598c97658196e58 20-Mar-2015 Chris Wren <cwren@android.com> log visibility of views

Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
2fed4d4256bd2c77b8b6de50579ec2916649f019 08-Sep-2014 Alan Viverette <alanv@google.com> Use correct list index for search highlighting

BUG: 14974443
Change-Id: Iad3d3efb2449fc61636c221bde92169293bf5356
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
eced780ff55e16079b0e96c0eaf57d8648f972df 04-Sep-2014 Fabrice Di Meglio <fdimeglio@google.com> Increase the delay for the Search result Ripple effect to happen

- will actually make the Ripple look better and a bit longer
(it was showing and disappearing a bit too fast)

See bug: #14974443

Change-Id: I7a0354c679cfa8d9596bcb957c922b8dcf88f0e3
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
d83b3c2a39e4716b4a4276b8b8ce0db2b9a62b9e 13-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16957601 Stability: ISE in Settings: Observer com.android.settings.
SettingsPreferenceFragment$1@273c8fdb was not registered

- add override for onUnbindPreferences() that will unregister the observer
if needed
- keep track of the root adapter so that we can unregister / register with
the correct one (by having a new PreferenceScreen the root adapter would not
be the same and thus unregistering the Observer on the new one would not work
and create the current bug)

Change-Id: I2cef0398c2ae0ab4f5ffd67ca20e8874be997bf6
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
7c435f6b441cfc281f77d2467a58a85a4167ffcd 30-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16660405 Stability: ISE in Settings: Observer ...
com.android.settings.SettingsPreferenceFragment$1@3c1d9ecb was not registered

- use a monitor to control registering / unregistering

Change-Id: Id66dd698abf92643c97938e2091c3be38e6b78bd
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b7bd72f297c9a33e7d819e3a309d304eac165919 25-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16533532 Settings app crashes on device orientation change
...when "change language" warning dialog is on screen

- try harder at getting the parent fragment. First try by calling
getParentFragment() and if this is getting a null reference, try
again by using the fragment Id saved during onSaveInstanceState()

Change-Id: I3dbc6a229224c8770ff2c7e432e76b8796c4b099
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
86159283c98fd862723ce317f1621bcb16d451ce 22-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Add the capability to set a pinned header to SettingsPreferenceFragment

- add a FrameLayout into the preference list fragment
- add public void setPinnedHeaderView(View pinnedHeader) and
clearPinnedHeaderView() APIs for adding and clearing the pinned header

Change-Id: I50ba5dd150167e0d49cc54bee1203f46db6d7a66
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
5bdf0423f9dbc3cf5970045aacdfef79daacc430 02-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix SettingsPreferenceFragment.startFragment()

- was always passing R.string.lock_settings_picker_title as a title res

Change-Id: Iab47ef3da00e91d5ce3b6dc50c50c943bd78b08f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c70b7f6f359a87c614e582fdae0cdeee8c61138e 19-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Search results highlighting

- remove unnecessary code
- use keyed Tag with a well known App key for preventing collisions
- fix missing Brightness Level preference key (used for highlight)

Change-Id: I070e3b8c3cb43da7addd34be192aade21951f57c
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
4a2ee7e2b610131452dd26e9b4e17f1bcc865bb9 22-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlighting for Search

- cache hightlight Drawable
- set mPreferenceHighlighted as early as possible

Change-Id: I512d4677e94309175ead22c46b7a78e2aa387e1c
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
676751ebbd8b6d9aee52e11b13a01797ac2ce0ba 21-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15115542 Ripple effect is crashing Settings with java.lang.NullPointerException

- for having the tint attribute to be populated you need to have the Theme passed.
This is why Fragment.getActivity().getDrawable(...) should be used instead of
Fragment.getResources().getDrawable(...)

Change-Id: I945eca98e1d73fda3b290a6ababfd1fb41118d8f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
ba348ca996696068142e69b5282261cd1b0b2baf 20-May-2014 Alan Viverette <alanv@google.com> TouchFeedbackDrawable is now RippleDrawable

Change-Id: Id025b58e9b62baa8d07f13b7eae2de61a3e4c90a
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
405febf56adbb2dfb3b2c68d8e76cc5212b9d683 24-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14288652 Settings crash on hitting back key from Tap and Pay screen

Gasp ... the Observer registering/unregistering code was not totally correct as
we were unregistering on a different RootAdapter.

- refactor the code for registering / unregistering the Observer
- unregister when the Fragment is stopped thru onStop().

Change-Id: I036eacd87c80fd2c9dedca705fb94a57a0c9a21d
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
829c8fb2bc728cb871bc398c66ff71b56aa7ebb9 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered.

- propertly register / unregister the DataSetObserver

Change-Id: I04de3c7ec14e71591edc174ebafabe9a1fb165c2
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c853a4282d0511d4a6886dfa95000c4dddff6a31 19-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Enable highlighting of Print services

- add to SettingsPreferenceFragment to know when the associated
RootAdapter is changing and thus being able to find the highlighted
Preference
- also, add the correct Search key during indexing. She should
match the one created when adding dynamically the Preference
- last, increase to 400ms the delay to do the highlight

Change-Id: I3a1a81fdf5c8ab5f3aaab29f16ea9879ab6df056
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
f2a5226c1e981ebb0c34aaf39524c382f996196a 18-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlighting

- use PreferenceFragment.onBindPreferences() to launch highlighting
- improve SettingsPreferenceFragment code for highlighting: now we can
find the View to highlight thru its Tag if there is no ListAdapter available
- add HighlightingFragment for highlighting a View from its tag/key. This
is dealing with cases when the content is custom and not relying on
SettingsPreferenceFragment (like DataUsageSummary)

Also:

- improve DataUsageSummary so that onResume() is not recreating the
Tabs all the time
- add missing "android:keys" on some Security Settings preference files

Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
5035ec6944d907864977c19f356a11d39c41e0c5 17-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix potential NPE with Preference highlighting

- there are some cases where the ListView adapter is null

Change-Id: I9dcd171f57d9ca7b8032d890f5a18c3a01fd38cf
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
906ff6fdf989ad4006c74d2bf37fc0e5d4da05f8 17-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlight effect

- restrict the effect to the Preference View itself

Change-Id: I3ab04433e1acecb906d0a458b31314f97b9bda03
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6602d02f57ec7375115da26a42357485ff1a778f 16-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlighting from a Search result

- fix computation of the Preference position in its PreferenceScreen
- use "highlight" (scrolling and Ripple effect) for showing the result
- "highlight" is only done once

Change-Id: I232d79d795b0983beac5a9fec3dfbe9da329c98f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c1457323d271309d5d1955743cd806417c84b9d6 05-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add support for saving and using the Preference's key value

- modify the SQlite data model
- update Index code for managing the key value
- pass the key when launching a Fragment or and Activity
- implement a small animation for highlighting the Preference
from a Search result

Change-Id: I617643a4e5e3b752ece8f45ce7d5429037e479da
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
377dd62bd7d767b9b944351f4b37b911d0d71b58 13-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12993929 Screen orientation change replaces wifi password dialog with Add network dialog

- use the correct Fragment manager: it should be the child's one

Change-Id: I286b276bc6c5180b7c0e458d8562938671d493c8
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Use Drawer in Settings app

- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6e1102d9faf1b8f038857709412c291ef6140aa9 07-Aug-2013 Geoffrey Borggaard <geoffreyb@google.com> Restriction pin changes.

Fixed bug in WirelessSettings where it was asking users for a PIN when
they weren't restricted. Did this by refactoring the preference level
pin checking into the superclass, where it checks for the restricted mode first.
Also pin protected changes to certificates for restricted users.

Change-Id: I8310fd39f0862159668318fc1360ec6859cc00d5
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
350938ecc69085badef2edc16491ff7a461dfb08 09-Apr-2013 Amith Yamasani <yamasani@google.com> Potential fix for a monkey-related NPE

Cache the content resolver so that async callbacks, events can
continue to get the cntent resolver when detached from the activity.
This should help with stability.

Bug: 8005271

Change-Id: Ia566bc312ce678b438004bdf4ed7537ac1604608
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
258f7c7e1c6c49fbbf6d89f787ca51baf1468691 05-Feb-2013 Amith Yamasani <yamasani@google.com> Improve error message to figure out which fragment class is problematic.

Bug: 8057867
Change-Id: I6ad0bc8c8a6ed9bc8a1cca5debffe15c6de3a1b5
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
aeb57edaef1abdcdcd21eb443047386940ffb755 06-Dec-2012 Amith Yamasani <yamasani@google.com> Pass the locale code in the help url for help pages.

Otherwise the help will always be shown in English.

Bug: 7564049
Change-Id: I94da36aa1ae5aabd118178866b7e570bb77add34
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
c861cf84479d2bb289546e8c4f116beb794842c0 02-Oct-2012 Amith Yamasani <yamasani@google.com> Improved dialog management in Settings>Users

Bug: 7266284 Delete not functional after orientation change
Bug: 7266182 Set up now not functional after orientation change

Also remove "vibrate when ringing" on tablets
Bug: 7253081

Change-Id: Ie616747f2e3292c401613eb2041b5a5a289cde20
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
9627a8ea151c1f27e5e9f34592c7b34fea3101c3 23-Sep-2012 Amith Yamasani <yamasani@google.com> Show more settings and add restrictions/dialogs for secondary users

Bug: 7213029 crash in About>Status
Bug: 7212495 hide System updates for second user
Bug: 7212230 nickname editor should select the text
Bug: 7160487 TTS settings
Bug: 7129411 Settings needs visibility changes for secondary users

Change-Id: Ia2d1229c08b392edfa6b671fce4a382410405b14
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b3a593eb766ed499274202db0b817f710c09b8b0 24-Apr-2012 Amith Yamasani <yamasani@google.com> Delay calling setHasOptionsMenu() to avoid a crash in Wifi Settings

If it is called in onCreate(), it's too early for Wifi Settings,
which does its initialization in onActivityCreated().

Change-Id: I3d9b49f63d342e724fd4795fbca48d08faa3c3cc
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b0b37ae21c172491bc170659b5f429601858ddc1 24-Apr-2012 Amith Yamasani <yamasani@google.com> Help menus for several screens.

Bug: 5144896
Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6465054995f8470e52ecaf68ea9508a28f8a5363 23-Aug-2011 Gilles Debunne <debunne@google.com> Bug 5050590: wrong title for lock screen

Change-Id: Iba170a25ac56db4140ab91f4fd583c0f676b02b0
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
8875edede1f441f66578feb4d09eb314ac40c25e 31-Jan-2011 Amith Yamasani <yamasani@google.com> Fix crash after adding a word to the user dictionary.

Bug: 3407951

Make sure that the parent fragment is a SettingsPreferenceFragment. Otherwise it's not
necessary to manage the mDialogFragment.

Change-Id: I331a3507fe11a7331ff24ecf64fe8c8c3f613636
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
18eb39d085c69d99188e59b01678a092ff36b557 28-Jan-2011 Hung-ying Tyan <tyanh@google.com> Clear mDialogFragment when it's detached

and re-associate it when it's re-created.

Before this CL, the association is gone when fragment goes through the pause-resume
cycle.

Similarly, restore onDismiss and onCancel listeners in VpnSettings.onCreateDialog(),
restore states in onCreate() instead of onActivityCreated() so that screen rotation
can be handled correctly.

Now that profiles are shared between Settings instances, always handle state change
in VpnSettings.changeState() so that state changed in one instance can be conveyed
to the other and preferences can be correctly enabled/disabled.

In additions, fix some trivial mistakes in VpnSettings.

Bug: 3396394
Change-Id: I242e1ed6c6d410b4dfefb373d8f98266fc9b46d0
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
300768fea5e1bedbf667c8c8a83d5aa3981312d3 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3400255 Dialog fragments crash on rotation in Settings app

Change-Id: I337c1fb41e3fbedd7982418df497487481bb35d2
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
adc83d83127edd58ff1f823b429cb99871e4488d 24-Jan-2011 Hung-ying Tyan <tyanh@google.com> Fix alert dialogs in VpnSettings.

+ Don't check mDialogFragment.isVisible() in SettingsPreferenceFragment.removeDialog()
as mDialogFragment may not be visible in parent fragment's onResume().
+ Replace mConnectDialog with mConnectDialogShowing and remove
removeConnectDialog().
+ Dismiss alert dialogs in onPause() so that we don't need to maintain extra
states during pause-resume cycle.

In addition, fix a NPE when startVpnTypeSelection().

Bug: 3381434
Bug: 3289365

Change-Id: Ic4aa87c7a618d95e86e45d6617f2ad7dab35f019
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
0ee51e04fb5c39a6272d142efc09d36aa3fbd0ec 25-Jan-2011 Hung-ying Tyan <tyanh@google.com> Allow OnCancelListener and OnDismissListener in Settings app

for the framework-managed dialogs.

DialogFragment acts as both listeners so the application cannot set both
listeners in the embedded dialog. New hooks are added in SettingsDialogFragment
so that settings apps can do so for the framework-managed dialogs.

Bug: 3386670
Change-Id: I144e7c4ccf7f86c61f6079fa86d830c709335af1
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
0385cf14a1b02fafc3d1a094ccfee45de4e9b03a 25-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3306021 NPE at android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

It looks like the dialog fragment was not being removed along with
the containing fragment. The containing fragment now checks for
when it is being removed and removes its dialog fragment at that
point.

Also fix issue #3340766 NPE at
com.android.settings.applications.RunningProcessesView.startServiceDetailsActivity

We need to check if the running processes view is still attached to its
owner, since we clear owner when it is paused.

In addition, fix a bug where ManageApplications was not persisting
its "show background processes" state, and remove the icons from
its menu items to make them more understandable in the action bar.

Change-Id: I4498ef92023eb60f90758ff18d8eed7b41af79b0
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
79c5fd971e71fe7a7f3037474285c1812e3c2c5b 15-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add WifiPickerActivity for PICK_WIFI_NETWORK

- We disable left pane when PICK_WIFI_NETWORK intent is used.
- Add ButtonBarHandler interface and let SettingsPreferenceFragment
use it instead of Settings. Note that
PreferenceActivity#hasNextButton() and
PreferenceActivity#getNextButton() are currently protected methods,
while Settings' relevants are public.

Bug: 3355247
Change-Id: Ie0fae8a1dbce9c7ce37375dff8395dc09b1cc74e
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
9e3a4700b6f6035c6ce79b0194ca0cff5f0f9574 11-Jan-2011 Amith Yamasani <yamasani@google.com> Remove extra button bar.

Bug: 3058024

Change-Id: Ib3c2620869729f8916178ea0c0e899635b470a8f
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
749ba652279bb4131a1a9dbe3f5d2cc4302c596d 09-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3244931 ANR while in settings attempting to enable Accessibility->Talkabout (IKXEVEREST-1847)

Change-Id: Ifea9324671d0e80a417f4b2fe6dbbe981f8b0679
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
43c697854c7e373fbc1dae8b7a5259a32de346b4 01-Dec-2010 Amith Yamasani <yamasani@google.com> Move Account & sync settings into Settings app.

Fragmentized some of the activities and moved buttons into the menu area.

Bug: 3148844
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
928e78acea580b2dd9f4d5b8207ec50ef9fc258d 12-Nov-2010 Amith Yamasani <yamasani@google.com> Fix VPN settings flow.

Bug: 3053019
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
59a48604b5a803fbec6857e07f9fa1adbc6b8bb4 11-Nov-2010 Dianne Hackborn <hackbod@google.com> Start fragmentizing battery usage.

Change-Id: I0864f6738b37c3203e166bb8f7e61e8904d9980a
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
e79f990490de49b39097433707c2bae6d8238330 03-Nov-2010 Jake Hamby <jhamby@google.com> Implement individual Bluetooth profile connect/disconnect.

Allow individual Bluetooth profiles to be connected/disconnected from
the device's settings pane.

Bug: 3137982
Change-Id: I21512c5bf965fc523f3dc1e83d029b16b5e22440
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
25af150c9804cbca83461588fa5277908baa943d 24-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove OnStateListener and FragmentStarter.

Those interfaces aren't available any more, as we make Settings
inherit PreferenceActivity.

Bug: 3034757
Change-Id: I2f778a12168e3033291d6935bcc73637e7c78c0b
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b5647c5720ab65a72de7744fb1e7ec7e6dec0b12 11-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize VpnSettings and relevant Activities.

Add startFragment() to SettingsFragmentPreference.

Change-Id: Ifab93b2e68892d5f6da559f337c94d62629780c8
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
6ebf8619d7f09e9642aed84310b56d9847eead94 10-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize BluetoothSettings.

Add UserLeaveHintListener.java, so that the settings won't use
its implementation around Activity#onUserLeaveHint().

Also fragmentize bluetooth tethering screen.

Change-Id: Id06ae3161fbdb5854ddb7a257f464fb16ea9b089
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
f58090d5224fa03e8f4d8a980306952686a152f0 13-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize UserDictionary.

Depending on I2c962726b0adc8811c18dd6df7ff7bdc93c31a07, which
implements DialogCreatable.

Change-Id: I9857e592218731bfbddc578c15180cc681fa4d20
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
21c1abcef77b6db18590215b6f7bc8e6dfda28bf 13-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize ProxySettings.

Change-Id: I2c962726b0adc8811c18dd6df7ff7bdc93c31a07
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
b61cf51d850d37a4d82b93b8ee0d190930421a46 12-Sep-2010 Amith Yamasani <yamasani@google.com> Breadcrumbs in the action bar for navigating up one level and showing current title.

Change-Id: I595e06549b888bd67c6dddd599a4cc77416c3a41
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
9c8bde576ab18fcfe653587f3e63604430c8791c 25-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fragmentize WifiSettings.

- Add button bar feature toward SettingsPreferenceFragment,
which has existed in PreferenceActivity and has been used
(probably) only by Settings app.
- super.onActivityCreated() is not called at the beggining of
WifiSettings#onActivityCreated(), the parent method assumes
the child should have prepared PreferenceScreen, while
WifiSettings cannot do until the parent Activity is ready.
- Call SetHasOptionMenu() should be called AFTER the parent
Activity is ready. It is not documented, so it would be better
to file another bug.
- Add exception to proguard...

Change-Id: Iebd27f0cb0abdbee9b4b1cc9b00f4bf127f7815d
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java
d79934731c8d33f6fc63b21c120b9ffba5d06f54 18-Aug-2010 Amith Yamasani <yamasani@google.com> Refactor settings top level activities to use fragments.

Added a base class SettingsPreferenceFragment from which the settings activities should
be derived so that they can behave like fragments. It contains some commonly called
utility methods and dialog conversion to DialogFragment.

Some of the top-level activities can be launched directly without the left pane.
Settings.java acts as a proxy activity that contains just that settings fragment without
the left pane.

There are still a lot of second and third level activities that need to be fragmentized.
This is just the first pass to test the 2-pane layout.
/packages/apps/Settings/src/com/android/settings/SettingsPreferenceFragment.java