History log of /packages/apps/Settings/src/com/android/settings/SettingsActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bb6859ca751e5813685ef8a71bebe22381ce575b 24-Jan-2017 Christine Franks <christyfranks@google.com> DO NOT MERGE - Allow FR in carrier demo mode

Bug: 34341567
Test: manual - in carrier demo mode, go to Settings > Backup and
Reset > Factory data reset > Reset phone > Erase everything and
this entire path is viewable.

Change-Id: I373a2e94f205f6e6e4dd9a54dcf08532a64e5187
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
f265dbc44768b10e7fa45a104801e9222ae8c089 04-Oct-2016 Matthew Fritze <mfritze@google.com> Fix bug preventing users from clicking settings suggestions twice

In an attempt to fix a monkey test crash which would open a
suggestion, click back and tap the same one again. The change
unfortunately prevented this for all users, but was not caught
because of a debug flag set on my device. A unit test will be added
to master to catch such cases, as tracked by this bug:
b/31937112

Change-Id: Ib1cff07e54903df687454bdbf2ed1416485ab34f
Fixes: 31926102
Test: Manual
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7ac78f2daf482a121bc17018653f187147f1bdf6 03-Oct-2016 Matthew Fritze <mfritze@google.com> Prevent monkey tests from crashing with race conditions

Change-Id: I3eb7d5549aba2f9684f97e8ee7c56c469f9daae0
Fixes: 31856366
Test: None, monkey test race conditions.
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
703dc60b14ca72c3a1051a377079bbbc0f92d495 30-Sep-2016 Matthew Fritze <mfritze@google.com> Prevent double tap on suggestions

Change-Id: I963d96b75cb5d464b6f91cf0824aee6e21cfeff0
Fixes: 31856366
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3981889d1d19f18443a3d2bee45d4a4bcffbbb93 21-Sep-2016 Daniel Nishi <dhnishi@google.com> Add storage manager settings activity.

Bug: 31621740
Change-Id: I5abc8ef3f12e02488104c0b74f4826d8c4182b2b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2ef1aa589427f96e15bea5c158c926d8196908c7 06-Sep-2016 Todd Kennedy <toddke@google.com> Direct launch to web action

We want to be able to direct launch into the web action settings
Fixes: 31338071

Change-Id: I295729b8c9e0d3c1196ed820a9e9f6163bf611b4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
12c5208ad0ef0fdf1b2e9c6ea2de852a8414990f 26-Jul-2016 Salvador Martinez <dehboxturtle@google.com> can open settings with support tab by default

Changes were made to the two files to allow users to provide
an argument in the intent for the settings activity. This
argument allows you to specify if you want the summary tab
or support open on startup.

Fixes: 30233920
Change-Id: I4745a0f75ea6a60a22381f5e58f2fac3836d86b9
(cherry picked from commit 2368e548e69e7331a0ea9b579cc65dd4b73b1343)
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
eae3d9f9329efb08296259100160204f3ae270a2 22-Jul-2016 Justin Klaassen <justinklaassen@google.com> Add NightDisplaySettingsActivity

- The Settings#ACTION_NIGHT_DISPLAY_SETTINGS action can be used by apps
to launch Night display settings directly.

Bug: 30291948
Change-Id: I5545bb7f0a467116454e5c44e207cbe91ddf9d43
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
ece8ff63b6a689d159e2295e1da674e4c0d7994f 30-Jun-2016 Fan Zhang <zhfan@google.com> Remove search in support tab.

Bug: 29397123
Change-Id: Id2d43724696c04e890adba562b5476e1834779da
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
26bf003df92b05fafd4e015680a22611724aa25b 16-Jun-2016 Doris Ling <dling@google.com> Update Backup & reset settings to launch the configured activity.

Check for configured backup settings activity to be used for
Settings->Backup & reset.

Bug: 28942163
Change-Id: I8b937fde5b400afdb81463c9c278b3e3ad42688b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
ca060e3e98c561cad5e28603200810ca70ae4869 24-Jun-2016 Fyodor Kupolov <fkupolov@google.com> Lockdown settings in retail demo mode

When running in demo mode, additionally disable
the following settings screens:
- Date & Time
- More (network settings)

Bug: 27280140

Change-Id: I3132d0c46b24e1e9ca3842af058073eee3df0c90
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
de17410d3711fd8da1b3bd8d5d3eb82e08e0c503 23-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge "Remove the Deletion Helper and Automatic Storage Management jobs." into nyc-mr1-dev
7d73a29e2863782c60c83dbedb042c882e7f060b 22-Jun-2016 Doris Ling <dling@google.com> Make MasterClear a valid entry fragment.

Add FactoryResetActivity that maps to MasterClear fragment, and add
MasterClear to SettingsActivity's ENTRY_FRAGMENTS so that the
factory data reset fragment can be launched from activity alias.

Bug: 29405129
Change-Id: I8eca6b857987792da8d8678d33e6ab9d4e10793a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
aad643caf24f6bfe7a04a0422d10102246877925 09-Jun-2016 Daniel Nishi <dhnishi@google.com> Remove the Deletion Helper and Automatic Storage Management jobs.

The automatic storage management settings have been left in place
and updated to use the intent to get into the deletion helper.

Bug: 28965462
Change-Id: I736c8e741b519eceb89075b74d42b38c3aa5d0f4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
9136523a434cb9ddf4619f7013753e42bfc2e64a 24-May-2016 Doris Ling <dling@google.com> Added new setting for gestures.

Added a new entry to the top level Settings' Device section to
enable/disable gestures.

Bug: 28565958

Change-Id: Icf642b6a3058c692fb2be9914579996598f03b7d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
aaaa236cec53f42963007c46b5d119ce9c6b03c8 08-Jun-2016 Jason Monk <jmonk@google.com> resolve merge conflicts of 7f7092c to nyc-mr1-dev

Change-Id: I27b058bd0cbbc2e253337cc56a1a032df96046de
7f7092c70512b24c1b640a8a039e89112ec31e12 08-Jun-2016 Jason Monk <jmonk@google.com> Merge "Remove PreferenceActivity" into nyc-dev
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/SettingsActivity.java
5862c1ef02ebb6c23b30d470913dac508700cb53 07-Jun-2016 Jason Monk <jmonk@google.com> Fix disabling of tiles that are not relevant

- Fix restricted user tiles being disabled
- Call new better method in SettingsDrawerActivity for disabling

Change-Id: I2fb6ddd3d505189d2b6d96c0a1039291b80a2f70
Fixes: 29080209
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
718c84f121c5c5237d346596f1d755e3d45f8d6a 01-Jun-2016 Jason Monk <jmonk@google.com> resolve merge conflicts of 67e87fa to nyc-mr1-dev

Change-Id: I8c5a79de3176912a1803a481b8b179faf1dad178
350a930c68fa35d912e11d319848ac44bd868d59 01-Jun-2016 Jason Monk <jmonk@google.com> onResume -> onStart, onPause -> onStop

For SettingsActivity and DashboardSummary

Bug: 28896214
Change-Id: I235d5c82b04b1363bf4416acb5cf5fc1c4db704f
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6b1e9dbea47bded54a593ef1bb989d3c2d0c2bc4 31-Mar-2016 Anna Galusza <agalusza@google.com> Change Nav bar style to use system nav (new style for Nexus N+)
Bug: 27612740

Change-Id: I309cf8252285130a0e1d2c03ca664706e73cce16
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
21ef89fd6be6506487a70394e3649c915253a535 25-May-2016 Sunny Goyal <sunnygoyal@google.com> Add an option allowing to skip wallpaper apps selection.

This commit adds an option to the Settings application, making it
possible to launch a different activity for wallpaper selection

Also removing te intent constant android.settings.WALLPAPER_SETTINGS
The target for this action can't be easily overriden when the
wallpaper target is overriden, which would provide an inconsistant
experience.

Bug: 28554244
Bug: 26688904
Change-Id: I25367fbb4505615351fbad9e1aa1ca88df0cd034
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
287d91181f70c990e1d961eedf13676f2451a169 04-May-2016 Daniel Nishi <dhnishi@google.com> Add an Activity to handle Intents to invoke the Deletion Helper.

This will allow apps to launch the deletion helper when they need to
have space freed up.

To launch the activity using an intent, you can set it as follows:
Intent intent = new Intent(Settings.ACTION_DELETION_HELPER_SETTINGS);
startActivity(intent);

This intent should bring up the Deletion Helper.

Bug: 28675265
Change-Id: I781615ccad4ca1fcae97817ecb823e5dcad67b5b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1e51aa507d28482dd98f3f1a6c24364b01a9edfc 10-May-2016 Hyunyoung Song <hyunyoungs@google.com> Revert "Add shortcut manager support to Settings (2/2) b/28298258"
b/28643184
This reverts commit 79ec6df771b0c05609a611a939f08fcd51f45b74.

Change-Id: I3de8a27e88a5a84825e914725259530b22756da0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
79ec6df771b0c05609a611a939f08fcd51f45b74 04-May-2016 Hyunyoung Song <hyunyoungs@google.com> Add shortcut manager support to Settings (2/2)
b/28298258

Locale change will be handled in future CL/ dynamic shortcut list
change using a UI will be handled in follow up CL.

Change-Id: I5468b17e8c8b32625139ab0484d5d0386be0961d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
8f14564787da3705a895e945c72c890604d13cfd 04-May-2016 Tony Mak <tonymak@google.com> resolve merge conflicts of d5b3a5d to nyc-mr1-dev

Change-Id: I1eb01bfdad24935efbbdbeaee0dcf1c374a2cadb
64f6d9896f4a7dea961698914177abc15e594f5b 03-May-2016 Tony Mak <tonymak@google.com> Add managed profile setting page

Bug: 28281560
Change-Id: I1187f834dd9d002ec898a7d343198025963d1c26
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
60a2e4d0167300a2f0c06f10b5600386f488c482 25-Apr-2016 Dan Sandler <dsandler@android.com> Merge changes from topic \'qs-tiles\' into nyc-dev
am: 321d450

* commit '321d45031bd93e05ffba4c8aedbac5dc41436bae':
Developer QS tile: GPU Profiling.
Developer QS tile: Show Layout.

Change-Id: I96b3eb012d3663d1c517aa53976a7ffd70d67c60
12c4ba4224a42d54ef671302a09c14ed0d3c09b0 28-Mar-2016 Dan Sandler <dsandler@android.com> Developer QS tile: GPU Profiling.

Bug: 27872042
Change-Id: Ia57005df15572b1714af2a3a8cd5b9794fdfb165
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2869157ba9b071f56691a285394500fa4c8a0a79 23-Mar-2016 Fan Zhang <zhfan@google.com> Display setting and support in a tab layout - DO NOT MERGE

Bug: 28269035
Bug: 28139604
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1d1a2694e93f5b9d8c6fe01a3be8737ae0034736 15-Apr-2016 Andrew Sapperstein <asapperstein@google.com> Remove ToastController.

Wasn't meant to be submitted.

Change-Id: Icc94daaf47ed85cefb59f20928241ef38d5ee2ca
(cherry picked from commit 17047d19396b9c01dd7d3daf92ef327f1eafc650)
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
12344c5ff5be19e9f610df033b2cdf529cd13d76 20-Apr-2016 Andrew Sapperstein <asapperstein@google.com> Merge "Create feature factory interface & initial impl." into nyc-mr1-dev
cd6a2115c64f89fb52119a08a164e242a7363455 20-Apr-2016 Clara Bayarri <clarabayarri@google.com> Fix Developer options appears after first boot, disappers on Settings Menu Reload

The Tiles are updated to disabled via PackageManager, which takes a few
seconds to kick in and hence the user sees the option appear and then
disappear. Making Developer Options disabled by default fixes the flash.

Note now the opposite happens, on eng builds where Developer Settings
are on by default they will not appear until the PackageManager update
has cleared.

Bug: 28121698
Change-Id: Ic7147e4430e2332d596ce37dbbce30e330dcf551
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
13792886a71b53d3f424618f411e3d3ddc2c59b3 11-Apr-2016 Andrew Sapperstein <asapperstein@google.com> Create feature factory interface & initial impl.

Creates the abstract class FeatureFactory and an AOSP implementation
called Factory.

Also creates a static library for generating logtags since we need to use the code generated
by the logtags in multiple packages now.

BUG: 27751878
Change-Id: I88d826333642d3efc252134c4facb7b1ca014f32
(cherry picked from commit 867bb9c07ab332fd9be67d1eeee3db796d9e0ffa)
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6c9e884aa04b19634722d95cb65d7df1050a0c28 14-Apr-2016 Jason Monk <jmonk@google.com> "Fix" search

- Only consider a locale actually indexed after it has had a full
update run
- Run all indexing queueing on the AsyncTask's serial threadpool
to avoid more threading issues.

Change-Id: I8fc84b0faafc5c104d090b6bbd87857550b3af89
Fixes: 27826745
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c461d5c03d652907c1b726cd0110a407d1c5bee8 08-Apr-2016 Ruben Brunk <rubenbrunk@google.com> Fix Settings activity typo.

Bug=28078304

Change-Id: I2744314bbd97b1c330baa53a07534c461dab3c0f
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
92779ce70156031f4fa3b8c2d84305f5b3b44105 28-Mar-2016 Udam Saini <udam@google.com> Prevents drawer menu from showing depending on intent.

When ChooseLockScreenGeneric is started via the set password
intents, it should not allow the drawer menu to show.

bug:26288300
Change-Id: I10d512e20fedab2be8c725c7d524db0c55666590
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b28b2cc68f0f61388383d1dd75630c3b86597a8e 22-Mar-2016 Abodunrinwa Toki <toki@google.com> InputSettings: Physical keyboard settings activity.

This CL adds functionality to trigger the "Physical keyboard"
settings screen via an intent.

Bug: 26943892
Change-Id: Ib4a0be38f94f83672501d5312079d132b2ab717d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2f1c11314b9a82f808b376c69c2617962566817f 05-Mar-2016 Anna Galusza <agalusza@google.com> Add screen for turning TalkBack on and off and remove intent to launch TB
tutorial from SUW. Also fix how Fragments are displayed (Fragment Views
were being inflated incorrectly causing bugs like the one where TB would
still see the hub elements on child screens) and remove ripple from
non-selectable text.
Bug: 27203716
Bug: 27218687
Bug: 27066012
Bug: 27587193

Change-Id: I4c6724b3ff6d6a7fca3d0f419a5e1c82ee1071d5
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d9779db8c966347734c5791cf63b7dc2e466a0f4 24-Feb-2016 Philip P. Moltmann <moltmann@google.com> Make Print Settings use the new PrintManager.getPrintServices loader

This makes sure that all data always stays up to date.

printer_dropdown_item.xml:
- Reduce the amount of overriden properties

PrintServiceSettingsFragment:
- Instead receiving most data from PrintSettingsFragment have own loader
and keep data up to date
- Also the updating of the print service state now has a dedicated
PrintManager call instead of relying of the Settings-ContentObserver
to transport this information. No more race-conditions, whohoo!

DynamicIndexableContentMonitor:
- To not rewrite too much code the update logic has to live here but the
reading of the actual data is in PrintSettingsFragment.

Change-Id: I60715cda8952565d7f68cb24fb7da61a37085887
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a2d47fcf59f03d091edaf5895fd3b651e1f499e1 03-Mar-2016 Jason Monk <jmonk@google.com> Fix notification setting summary

Bug: 25926406
Change-Id: I503f2d2def095e37f6b16ca345112fe81ef73e29
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java
e4ebcd12be7baae58a1fabcda6c7544c911c95eb 21-Feb-2016 Jason Monk <jmonk@google.com> Add generic logging to Settings switch bar

Same usage/format as the shared preference logging.

Bug: 27043208
Change-Id: I7a7a5c0a9c92ec6cef50df58313016218cf2f2f7
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
322cfe8be0b3083697583a429f8e7d62428d04f8 04-Feb-2016 Jason Monk <jmonk@google.com> Settings Visuals

Update the layouts to be more final, and support tablets better.

Move about to always be last.

Always see everything.

Change-Id: I4b804c9bfcd4d3b7f978a2617d5c2c2b1cdfa6e4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
31c7c32fcc26a421a4d2fef7f006917ef590f426 20-Jan-2016 Jason Monk <jmonk@google.com> Broadscale logging for Settings

Bug: 26687914
Change-Id: Ida75ccf95376538e2ba95d212d333c40fd2dd6e0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
eede8d563eab251850d2746f7403826f3ef1f403 27-Jan-2016 Jason Monk <jmonk@google.com> Merge changes I81380323,I0cce76f3

* changes:
Add wallpaper suggestion if one isn't set.
Add DND Suggestion after 30 days
b9e5d238b64abf3a45f148b43b8d8fcca912d976 26-Jan-2016 Jason Monk <jmonk@google.com> Add wallpaper suggestion if one isn't set.

Change-Id: I81380323f0d4f5af842a81028a763219958833bc
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
bfae9dd7f20b89eee6aaeaef362593fa3e2db929 26-Jan-2016 Abodunrinwa Toki <toki@google.com> Merge "Input settings: Associate keyboard layouts with device/IME subtype."
5f0b59babfbfe483855b294098613f8d0fc2f9b4 26-Jan-2016 Abodunrinwa Toki <toki@google.com> Input settings: Associate keyboard layouts with device/IME subtype.

Implements selection of keyboard layouts using the new InputManager
methods that associate keyboard layouts to
device/InputMethodInfo/InputMethodSubtype
See: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216

Bug: 25752812
Change-Id: Ib76880d66391ca37978054de80f4b3b5147cecc3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7eda1c5fa19e96b5cef7843dcbd5ff8dc0abde5e 26-Jan-2016 Jason Monk <jmonk@google.com> Merge "Only show settings drawer on top level items"
7ea14c5625c988a81c09625f54faed846fc07ec7 22-Jan-2016 Jason Monk <jmonk@google.com> Move Home settings to Default apps

Change-Id: I2ac7f9dd2c1c505ff3163b2a90c574a360b9409c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
478c592bf3106b3140a4fd1c225706ac26f31f1a 22-Jan-2016 Jason Monk <jmonk@google.com> Only show settings drawer on top level items

Bug: 26080590
Change-Id: Id5047ef89832eb455719cd57b0e853a97d538a69
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
976bb3f45915bdd5165d9a50402d4c1163dae809 20-Jan-2016 Abodunrinwa Toki <toki@google.com> Change Input Settings UI flow.

1. Introduces new UI components as per the new flow
2. Temporarily disables components in the old flow that are to be
replaced by the new flow. This is done so we can neatly revert
to the old flow if there are issues with the new flow
3. AvailableVirtualKeyboardActivity now responds to
android.settings.INPUT_METHOD_SETTINGS intents instead of
InputMethodAndLanguageSettingsActivity

Bug: 25752812
Change-Id: I728d7ee185827ed328c16cb7abce244557a26518
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
f9d330448b34e1767f3b9d0814bf8779488ca86b 22-Jan-2016 Anna Galusza <agalusza@google.com> Merge "Make A11y SUW launchable from SUW and small UX changes based on last round of UX studies."
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/SettingsActivity.java
d7d48fda53747a7a25e903d9ef6defa6ea590ebb 12-Jan-2016 Mihai Nita <mnita@google.com> Implement multiple locales and sublocales in Settings

Does drag-and-drop reordering, supports adding / removing locales,
suggestions, search, removes locales already selected in the
user preferences.

Bug: 25800339
Change-Id: Iffe7b9810c77ec93a84d848ab20b2ba405249676
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java
8c9521f27c86e86ff64ca5a086dea4a6a469a3e5 12-Jan-2016 Clara Bayarri <clarabayarri@google.com> Fix leaking IntentReceiver in SettingsActivity

We added a new IntentReceiver to notice users being added and
removed, but missed unregistering it where appropriate.

Change-Id: I3ca1d7c8916870066dda34b830e100948dd4481c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6934a044b8ebf4dac28d1c1142b6eee4ecc64f66 14-Oct-2015 Clara Bayarri <clarabayarri@google.com> Work Profile Passphrase Setting

Create a new section in Security Settings which includes all
settings for the Work Challenge.
Only some settings apply to the Work Challenge, so we reuse
the security settings layouts for items and compare them against
a whitelist to remove unwanted items.

Additionally, remove all usages of ChooseLockGeneric.KEY_USER_ID
in favor of Intent.EXTRA_USER_ID.

Change-Id: I3d1ba953a2056f7c61a7b3feeb8b49f1a352dff6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d4f03ec86f9e8b7b108fc63684e23f5c0fb2a864 07-Jan-2016 Jason Monk <jmonk@google.com> Add suggestions to settings

Use an XML to define the categories that Settings will look for,
and surface enabled activities under those categories as suggestions.

When clicked on the activity will be started for result. If the result
is not cancelled, then the operation is assumed successful and the
suggestion is disabled. Users can also use an overflow -> remove
flow to get rid of unwanted suggestions.

Change-Id: I767abf8efe103af0509bc6b6b55888ae82643512
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2e1e0b7ef69b7a93cc170168aea211e739b3412e 14-Dec-2015 Julia Reynolds <juliacr@google.com> Allow users to choose a notification assistant.

Change-Id: Iddfbfedbb6a3aae246058ff41324dc06852484cb
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b1dd5c9959baf139cc9627eea44df918b2ed1364 16-Dec-2015 Jason Monk <jmonk@google.com> Fix Settings Titles not being set correctly

Bug: 25585359
Change-Id: I523a00115295adb9f43de768bb40c02099ffb1af
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4527405eb89bc16c36b47f4aa3e71ffbee333d76 04-Dec-2015 Jason Monk <jmonk@google.com> Remove MAIN_SETTINGS metrics

Change-Id: I77aba7443ce28e13d6f9fe8a620f585f614ef0f3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
fd2c7224185bef301cfaa7de6fe1af22cab8df2f 02-Dec-2015 Jason Monk <jmonk@google.com> Work on settings launch speed

Move some stuff to the background, avoid doing other things.

Change-Id: I145172efa16f81c2f377f07744c8f88145e2ed1d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
8c0a4238655990094fe444ac8f7b182963497030 24-Nov-2015 Julia Reynolds <juliacr@google.com> Split Sound & notification settings.

Bug: 25860852
Change-Id: If88daf6fd50b5abf86fb86f3590361f0118172a1
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
27e0f927746e0aad47cdb584584e4e05dd9792ed 18-Nov-2015 Jason Monk <jmonk@google.com> Merge "Summary support for Settings Home"
5555d26b209d8856d862e7fe369f34cb29dcd3a7 09-Nov-2015 Julia Reynolds <juliacr@google.com> Apply DND to visual effects.

Bug: 25423508
Change-Id: I00ace3da8a7fea089f4d0fc3f6161452285abb8e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3069581512bcb9687cb8d79675f6c4950c9ac087 17-Nov-2015 Jason Monk <jmonk@google.com> Summary support for Settings Home

Also add summaries to a few of the major items.

Change-Id: I17924f14941fe095d819e142cdd21cf4b4e9ffd1
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
af00109242a5766ca9418b145c4fb098360c5648 04-Nov-2015 Jason Monk <jmonk@google.com> Settings Drawer: Support multi-user changes

Change-Id: I3a6e481ca18794bf1ed3bc9dc0382deacfcf81f4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4da79e088f9e8d9c6123fbbb7590c779e280c893 10-Sep-2015 Jason Monk <jmonk@google.com> First pass at drawer to Settings

Change-Id: I94c3bc69ff773e48c33f59f37bfc0d91139c187a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java
f7748e4ae15e49f9f4a9cc15a372e9a6d3c35c56 29-Sep-2015 Julia Reynolds <juliacr@google.com> Update zen rule type selection and view.

Separate rule type selection from naming, launch 3P UI for non-system rules.

Bug: 22977552
Change-Id: Ifbd82da2192c4aaf5f239a188a016d9e1af542d6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
482e57068312f44f884de9ddb2b550cd1833c80f 30-Jul-2015 Billy Lau <billylau@google.com> am 9ccf08d2: am bb75ef0a: am 82e6edfe: am 95026e03: am eb372c93: Merge "Bug: 22718745 Intents to \'draw over other apps\' should go direct to the package\'s page instead of the top level one" into mnc-dev

* commit '9ccf08d2ee47407273bd9bc16f0fe0aea3b278c4':
Bug: 22718745 Intents to 'draw over other apps' should go direct to the package's page instead of the top level one
fee785645b57c519a31ed403e60e8f76dcc8abbb 27-Jul-2015 Billy Lau <billylau@google.com> Bug: 22718745 Intents to 'draw over other apps' should go direct to the package's
page instead of the top level one

Settings:
Added two activities to handle app-specific Intent when app invoke permission
management UI.

SettingsActivity:
Added two fragment classes to handle app-specific Intent when app invoke permission
management UI.

AndroidManifest.xml:
We handle both Intent to top level settings and app-specific management UI for
app ops protected permissions.

AppStateAppOpsBridge:
Added a new field to PermissionState to keep track of permission declared vs one
that is actually granted during install time.

AppState{Overlay/Usage/WriteSettings}Bridge:
Updated the fields affected by changes in PermissionState.

{DrawOverlay/UsageAccess/WriteSettings}Details:
Disabled the toggling of permission if the app did not declare for the asked
permission.

Change-Id: Ibf63e4d9a4fbf7899a93d2176abb1204c4f75557
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
44879a387a6be6b93cdcc8894227d68af7dbbb1a 22-Jul-2015 Xiaohui Chen <xiaohuic@google.com> sys user split: first pass updating Settings

Update various places in Settings to use "admin" ueser flag
instead of checking user id "0". This should be no-op in
single user mode since the only admin user would be user 0.
In split system user mode, this will correctly ACL admin
user instead of non-interactive system user.

Bug: 19913735
Change-Id: Ida4d59c5f689ea0dc34b3b3ff0822b087fa0afd6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
533a5664da21d6bf8819623673fe14b20ba23207 19-Jun-2015 John Spurlock <jspurlock@google.com> Settings: Add widget entry point to magical entry points listing.

Bug: 21930077
Change-Id: I67b05d6064a2ab0fe93d3d8841c9f23c9246a101
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2cdafc6be386bb767404e42fc728a1a810aa896a 12-Jun-2015 Jason Monk <jmonk@google.com> Layout refinement for app lists

Make all app lists (or at least all current app lists) use the same
base layout for icon, label, and sizing/padding. This way they
should look the same.

Bug: 21727125
Bug: 21726922
Bug: 21853632
Change-Id: I3cffadb9e7b5184d4209deacd4ea70ec1d4f71b4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2acff556c25e788c47284c9fc837f27a1916b578 11-Jun-2015 Jason Monk <jmonk@google.com> Clean up settings shortcuts

- Remove some bad entries
- Fix icons to be top-level item specific
- Add memory

Bug: 20632230
Change-Id: I067b467b9ee354b52ef61b312dc5a89fd7eae2ac
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
86a554091d0705f2152fcf1d78ca1c7720d9842c 02-Jun-2015 Xiyuan Xia <xiyuan@google.com> Implement default assist app setting

- Add "None" support to AppListPreference
- Add DefaultAssistPreference to manage assist;
- Add AppListPreferenceWithSettings to show a settings icon;
- Implement DefaultAssistPreference based on AppListPreferenceWithSettings;
- Move voice input settings into ManageAssist and implement it
based on AppListPreferenceWithSettings;

Bug:20210110
Change-Id: If283b8b55a46b428ecfa6e45dc2123292b1d4302
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
ea8b1a7dc5fa11742967923251b437a02568f021 02-Jun-2015 Jason Monk <jmonk@google.com> Hide search from everywhere but the dashboard

Because it is too confusing what it does/doesn't search.

Bug: 21556767
Change-Id: Ib162177ce3eea816344d8d0fd5d71f85bfc94183
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b45e27bc0f52d64a71aecba661770b30f6299301 20-May-2015 Jason Monk <jmonk@google.com> Remove data item from app info when not supported

Bug: 21207963
Change-Id: I91693d9a85c0905cbb021181967fa16aac61d3ea
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e74fdb8d672a361f5a29cded65278054e1683fc6 19-May-2015 Nicolas Prevot <nprevot@google.com> Merge "Remove the check hasMultipleUsers in Settings." into mnc-dev
36940543e98c96413168d094914810ce3ccc424f 14-May-2015 Nicolas Prevot <nprevot@google.com> Remove the check hasMultipleUsers in Settings.

When deciding to show the user section or not, Just rely
on supportsMultipleUsers. Don't check hasMultipleUsers.

BUG:21119929
Change-Id: Ifbddac10e2f6dc02b8e2e55b41ab9f5be018dfca
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7000d5433880b736bd67cbb44f66df771b64ee1b 13-May-2015 Nick Kralevich <nnk@google.com> New UI for controlling USB

Create a new UI for managing USB access control. This UI is implemented
as a transparent popup triggered by a persistent notification.

Delete the old UI for controlling this. It is no longer used.

Bug: 18905620
Change-Id: I54186961414447a9d37f68e946e1c167506170ae
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
08531a81cb34dc45f0da4ca88e8530169831c7d2 07-May-2015 John Spurlock <jspurlock@google.com> Settings: New DND access settings page.

- New advanced notification settings subpage for managing apps
that have requested the ability to manage notification policy.
- Create new "Advanced" section at the bottom of notification settings
for this and the existing Notification access settings page.

Bug: 18298798
Change-Id: Ib415e634980d37d6492799f67a6619700ee2a01c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1eb54eb2ff250eccdd700601011bd6457ddcbec1 29-Apr-2015 Jason Monk <jmonk@google.com> Add high power whitelist for apps

- Strings not final!
- New UX for power usage details (more preferency)
- Add high power apps list shows on/off and screen to
change (when possible)
- Link from power usage summary to high power list
- Link from advanced apps to high power list

Bug: 19991702
Change-Id: I97c927ed82d3b89041e4429b427508545763d66c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4dfcb8208cdb49167ccf99aeaddf9e206eba87d1 30-Apr-2015 Jorim Jaggi <jjaggi@google.com> Update fingerprint settings to spec

- Make it look like a sub settings activity, with back button
- Add disclaimer to describe what your fingerprint can be used for
- Update visuals and text for "Add fingerprint"
- Update related string

Bug: 20594955
Change-Id: I0adfcc743db386e0abf9cfdafff3d068ebc3b4bc
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
5982d17a2623aa6ef7597acb43738d92803c7b43 30-Apr-2015 John Spurlock <jspurlock@google.com> Merge "Settings: Do not disturb automatic rule updates." into mnc-dev
f57bad7d5b0f9044231fc52351ed27e14013f491 30-Apr-2015 John Spurlock <jspurlock@google.com> Settings: Do not disturb automatic rule updates.

- Remove FAB for adding rules, move to last preference.
- Add first-class event condition type and config sub-page.
- Always show radio buttons when adding rules.
- Add new data model for event rules.
- Add stub condition provider for event rules (always false for now).
- Add rule-type icons to rule preference rows.

Bug: 20064962
Change-Id: Id5acde371eb2e7d22b1f195459897614db5ba80a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e77f0687dd424ccfdc2b1061221c6c8ba4d6ac8d 29-Apr-2015 Jeff Sharkey <jsharkey@android.com> Returning to wizard, enable migration.

Bring primary storage migration back into the adoption flow, and
provide a path for long-lived notifications to re-launch into the
Settings app. Also provide option to initiate migration if skipped
during wizard. For now, estmiate migration size and time based on
a Class 10 card.

Follow other callback refactoring.

Bug: 19993667
Change-Id: Ia0c28eb114bc6c8066c17b3142ed74f962140c91
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a16257dbd5599135320f4263a2cb438b7a469084 28-Apr-2015 Jeff Sharkey <jsharkey@android.com> Format as public/private; follow refactoring.

Offer to format an empty disk as public/private.

Bug: 19993667
Change-Id: I69fafaed524f3ef5e65d04a9e3a94789fcfc3087
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2583fc1e069d0a54df46258d360499492d7e86d2 25-Mar-2015 Jason Monk <jmonk@google.com> Move process stats screen into memory screen.

- Move process stats from developer options to top level
settings item.
- Some minor UI changes to the top of the page
- Major UI updates to detail page, now shows info with processes
as pref categories and services as prefs, with a way to kill
them (taken from Running Services page).
- Some major refactorings in code, in attempt to make it more
usable
- Added color bar on per app basis to visualize the avg/max
relationship
- Updated the way avg is calculated across multiple entries in
ProcStatsPackageEntry to be more accurate
- Change the way max memory is calculated in
ProcStatsPackageEntry to be less accurate but more useful

Bug: 19443802
Change-Id: Ia6aaabe42c415c50997a09bfb814a6f6e5731772
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d8da51ccfecf16f2c06f788e6bcbc232d1f0cb32 17-Apr-2015 Jason Monk <jmonk@google.com> New UX for app usage screen

Now uses ManageApplications base, and has a details screen which has
a switch and a link to optional app settings.

Bug: 20290386
Change-Id: If32ce8d82e55f3908644c575925b3f6506a68e6e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c1df2aa9639a27fa6d759b21a760b6b63e38a1c2 14-Apr-2015 John Spurlock <jspurlock@google.com> Settings: Register zen priority settings entry point.

Bug: 20064962
Change-Id: I96e094f7d6859b2033c87013bedc270d0290937c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c96a5dcbfc3f37f71e8b3e8b962f9571b1e7ceaf 10-Apr-2015 John Spurlock <jspurlock@google.com> Settings: External automatic rule settings.

- Add external automatic rule settings page with the common
settings for all rules (enabled, name, zen mode).
- Pull common rule-instance settings into settings base class, share
with existing schedule rule settings.
- New page not searchable since it is at the rule-instance level.
- Obtain external rule information from existing conditions provider
metadata. Includes rule type caption, sub-configuration activity,
and default condition id.
- If external condition providers exist with the appropriate metadata,
display the external rule types as options in the new rule dialog.
(max of 3 external types)
- Pull common managed service listing code out of common settings base
class and into a more reusable helper class.

Bug: 20064962
Change-Id: Ibc13607490b7312a7d9f7f3bd61c3cfcf71a2794
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
42833b2ff4d7a26dd9a609d2fd4436d9a26f28b5 12-Apr-2015 Jeff Sharkey <jsharkey@android.com> Checkpoint of new storage UI.

Top-level storage UI now shows list of all devices, both internal
and adopted/private volumes, and public/shared volumes.

When viewing a private volume, show traditional clustering of data
types, including summary of other users. For adopted volumes, any
actions are tucked away in a menu, since they're not primary. Misc
files browsing is now provided by DocumentsUI.

Teach StorageMeasurement about new private volumes, including
handling emulated volumes stacked above them. When measuring, only
consider apps actually hosted on the current volume UUID.

When viewing a public volume, we default to launching into file
management mode, and offer a simple eject button at the top-level
view. File management mode is offered by new DocumentsUI browse
intent, and a Settings link there redirects back to us for actual
operations like ejecting/formatting. When unmounted, we launch
into our action view.

Actions like ejecting/formatting just show simple toasts for now.

Bug: 19993667
Change-Id: Ie990ef3c01fb3717aaf8c79bfc53aac7edefdcf7
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
45fa140b8c6846b4546fdeabebf989ae9102cebb 09-Apr-2015 John Spurlock <jspurlock@google.com> Settings: An update on Downtime.

- Migrate settings to the new zen mode state model.
- Remove downtime settings.
- Add automatic rule management page (add/remove)
- Bind new automatic schedule rules to detail editor.
- Clean up a few found miscapitalized string captions.
- Migrate zen switch to report the shared summary string.

Bug: 20064962
Change-Id: Ia561e7f77c90c962729240b4d51ba1915297f64a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
82210af70742ca8b6f3aa25f0f6801cb1d6c9aa8 09-Apr-2015 Lifu Tang <lifu@google.com> Merge "Worked around back button navigation issue"
d033285ca7789b464f15cde149bef7df3ad2e1a3 02-Apr-2015 Lifu Tang <lifu@google.com> Worked around back button navigation issue

Calling startWithFragmentAsUser() without specifying FLAG_ACTIVITY_NEW_TASK to
the intent starting the fragment could cause a native stack corruption. See
b/17523189. However, adding that flag and start the preference panel with the
same UserHandler will make it impossible to use back button to return to the
previous screen. See b/20042570.

We work around this issue by adding FLAG_ACTIVITY_NEW_TASK to the intent, while
doing another check here to call startPreferencePanel() instead of
startWithFragmentAsUser() when we're calling it as the same user.

Bug: 20042570
Change-Id: I26b269414f410912b77aaa553a3fccebfa148659
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java
2ebc8a01696c4e7dd29863b92a15ae0bbbbb254d 13-Feb-2015 Jason Monk <jmonk@google.com> Allow system apps to add to settings dashboard

Allow system apps to add a tile to the top level of settings that
links to an activity through adding a filter for a specific action.
Determine the info for the tile based off manifest info for the
activity. Also allow the same for managed profiles, but show a dialog
in between to select which profile.

The category in which the item is to be placed must be in meta-data.
The icon and title can be specified through meta-data as well or
if unspecified the activity's label and icon will be used.

Also added an optional <external-tiles> tag to the dashboard
category xml, this allows Settings to put external tiles
in the middle of some categories (Personal does this).

Bug: 19443117
Change-Id: Idc9938d1549d181103a3030a8784b527215a8399
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
584b2b2bc17a4ccf42952b188722de1091c101be 20-Mar-2015 Jason Monk <jmonk@google.com> Make notifications app list use new manage apps

The designs for Settings have the notification app list using the
same UI as the Manage Apps list, so switch the notification app
list over to the ManageApplications fragment. This involves
adding some notification based filters and connecting the data
from the Notification Backend to ApplicationsState.

Bug: 19443900
Change-Id: I5e5cdb16890d536613ee59292b89a89b6fb9e2e6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
9a23adf69dc53126c9858b19760eab5b67c23b97 18-Mar-2015 John Spurlock <jspurlock@google.com> Settings: Remove all unused imports.

Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4fa74486db7dd4f5d9eb6030888d8917077e987c 16-Mar-2015 Narayan Kamath <narayan@google.com> Fix build harder.

The first build fix removed a missing comma due to a bad conflict
resolution. This one removes a reference to a non-existent
class.

Change-Id: Ie2fd7ac8141f3ec6c34ed5f09e08842d02e7e650
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
33acb15e032ac65d743b708731004b9a5f7813d5 16-Mar-2015 Narayan Kamath <narayan@google.com> Fix Settings build.

Broken due to a bogus merge conflict resolution.

Change-Id: Id4e3215ac964ebac792e29f50741b020c06d11f4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3b84208212727833ccebea3fef03901331f5a12d 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: I6c9de433a224925961b484b400a89edf9059d2bd
dff3faaf30bd6d695e4d9f632af53dbc73cf6506 27-Feb-2015 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #19313587 Settings unusable when userdata is full

- take care of low storage space use case: do not start
and Index update if we are is low storage space situation.

Change-Id: Ifa5bb618d087826c004b06aa7821b9634038734c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4ab32563f1cd7d018ee7cdaec8d5a527964a05b9 24-Feb-2015 Pavel Zhamaitsiak <pavelz@google.com> Add Wi-Fi Calling preference screen

Change-Id: Ie89902b55c5c4184236636f5039b3246a9c0bda5
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
bbb3efe373ec1b7bc5939b3b7694a11c45babe9b 05-Feb-2015 Svet Ganov <svetoslavganov@google.com> Removing the unused for years app shortcuts feature.

The shortcuts feature has been commented out since 2011. Now the setings
provider no longer has a bookmarks table since the only party aside of this
commented out feature using it was the ShortcutManager. We moved to an
in memory model for the settings provider's state. We do not want to keep
there anything that is not used. Therefore, we moved from a bookmarks table
to a resource which renders this settings feature unusable. If we decide
to revive the shortcut feature we can revert this change and add support
for in memory bookmarks state in the settings provider.

Change-Id: Ib1871f940bc27029a5dd941b901d6087914a2231
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
62464b819e185ce4a1642442fcf4cc18a4932a78 11-Aug-2014 Alexandra Gherghina <alexgherghina@google.com> Modify account settings for better locale resolution

Bug: 16282173
Change-Id: I2ab861464cdbbb1c1b0a5a7231f960d8ed9e90c6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
0698a216311acd9ab52224602d1a75c08bf89f04 17-Oct-2014 Jim Miller <jaggies@google.com> Several fixes to new EncryptionInterstitial dialog.

The code now observes whether accessibility is turned on when
deciding the default state.

Additionally, it fixes a bug where the user can back out of
EncryptionInterstitial and leave the setting in a bad state.
We now propagate the state until the place where it ultimately
gets stored.

Also fixes problem where Encryption was ignoring the state
where the device was already encrypted.

Fixes bug 17881324

Change-Id: Iec09e4464832a506bb2a78bb14a38b3531971fa0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b3c7a179b10040945c055bed30731d7f27c2dcc2 23-Sep-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #17624121 Settings crash while launching on wiped device

- check for non null reference returned by NfcAdapter.getDefaultAdapter(this)

Change-Id: I88776dbefd351ce1c77cfed6d14b8b2143294488
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7a2ccf201e839e8755b2184402072113498eef1f 18-Sep-2014 Zoltan Szatmary-Ban <szatmz@google.com> Show Power usage details for the correct user

Settings > Battery > Details has to observe managed profiles and start the
Power Usage Detail fragment for the correct profile.

Bug: 17523189

Change-Id: I7a47b972a8a0492b4a411197cd2c8c65f24c2e7e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
0ff107e384a6fe99bfa8a5e542f6e0c89b909d85 15-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #16703191 APN settings shows back button even when you intent into it" into lmp-dev
61a1fec49fbfbe8bdd0137ddb06e5eacf4f8ec54 14-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16703191 APN settings shows back button even when you intent into it

- change a bit the way we recognize a SubSetting. Now we can pass the new
":settings:show_fragment_as_subsetting" Intent extra for forcing it.
- convert ApnSettings to a SettingsPreferenceFragment

Change-Id: I22167ad317530c0a58c4d522a72826f9d34ad2d3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e1fd76a85bf86fe5cd6637d3fdfe6420283395ed 13-Aug-2014 PauloftheWest <paulofthewest@google.com> Merge "Revert "Add BT message access"" into lmp-dev
b51253cfed0796b20e03a104aaca4d8d3e2d3024 13-Aug-2014 Dianne Hackborn <hackbod@google.com> Add action targets for voice input and usage access settings.

Change-Id: I5ea0b34ed440b2cfdce0c63e2c4976c89202eb64
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
f8cdcbf19c2a1fc44f9227453a73f2dc2061eb09 12-Aug-2014 PauloftheWest <paulofthewest@google.com> Revert "Add BT message access"

- removed Message Access screen from Bluetooth overflow

Bug: 15720425
Change-Id: I68191a4639ea7e6b6cd3a60e88160443fab2ba0e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
09076e5f3c90dbc1a3bdf6f000e0c99dd2bb45b4 08-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #16896118 SIM cards should ONLY appear in search results for devices with 2+ SIM slots" into lmp-dev
22a2a49b445b8721c8194eedf3608ea81c62ccef 08-Aug-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16896118 SIM cards should ONLY appear in search results for devices with 2+ SIM slots

- add the proper SearchIndexProvider to SimSettings
- allow indexing only an only if showSimCardTile() is true
- add Utils.showSimCardTile()

Change-Id: I5df2284d32f91fa454e1edebf1139d00593138a0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
802ddf99f57e316d0fd87c2cfeed5dc3a0cfa8fe 18-Jul-2014 John Spurlock <jspurlock@google.com> Settings: New application-level notification settings.

- Convert the old application-level dialog to an activity.
- Move the settings icon to the new activity (out of the list).
- Add a custom application header, similar to the switch bar style.
- Use the ubiquitous vector gear for the settings icon.
- Migrate old checkboxes to switch prefs, add new summaries.
- Remove obsolete artifacts.

Bug:16396715
Change-Id: I857e3cf448b79f44fe1c242e6020f5214434c00c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
57fd5fd84be2497845f6c03905500d2a36668b6c 07-Aug-2014 Amith Yamasani <yamasani@google.com> Fix removal of optional settings tiles

Bug: 16654819

Fix the way the tiles get removed so the index is not out of sync
and there's no double deletion of entries.

Change-Id: I18da6b633884f51418c11afb0e177b49ca085fd0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6cef9d23b8572d8bd87329999f10286e29a861c0 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #16515550 Settings app crashes for intent com.android.settings.QUICK_LAUNCH_SETTINGS" into lmp-dev
e3ff4d8e92a19473c622c1d46b30c63bf2d001d0 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16515550 Settings app crashes for intent com.android.settings.QUICK_LAUNCH_SETTINGS

- make it work again (what a code...)

Change-Id: Ic71d8e40ff8a5e0c663fd40655e4f4cc31bc8caf
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3815561997eced7fd773062ce32eaa50bece072c 30-Jun-2014 PauloftheWest <paulofthewest@google.com> Added SIM Card Activity to Settings

+ Added SIM Card menu to Settings menu
+ Added SIM card detail dialog when selecting a SIM Card
+ Added ability to select the default SIM for Cellular data, Calls, and SMS

Bug: 16241745

Change-Id: I43437aa4c591c5097a8865d564f88726671e1b7d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
456229ccdfb6ddb8cd1ac3be939e1c2221f4bedd 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix how Home Activities are refreshed" into lmp-dev
b0a464fd2cbbe00821d483d28e76a04ac17996ea 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix how Home Activities are refreshed

- remove that HomePackageReceiver from the AndroidManifest
that could force Settings to run
- use a HomePackageReceiver into HomeSettings and DashboardSummary
- fix also the BatteryInfoReceiver for refreshing the Dashboard

Change-Id: Id3891529fc176e7e4c450f2ce723f8ac2af66c58
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
ceb335f88fc0df88dafc8063733842afe35c5da1 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Settings Dashboard refresh for Home activities

- cache the number of Home activities into mHomeActivitiesCount
- save and restore its value
- use its value for triggering refresh of the Dashboard

Change-Id: Ibc228b9b26c3515bba89ab17c7d39531125e8df8
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1e9405b5cc35d598507fccdfa0e833ab83b2cfd9 24-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add Settings Dashboard refresh for Home activities" into lmp-dev
d73045db7a52a834144bc6c28935aaec4878f1ea 23-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Home / Launcher apps indexing

- add a BaseSearchIndexProvider to HomeSettings
- use a BroadcastReceiver for tracking add or remove of
Home / Launcher apps
- add "launcher" synonym for "home" too

- also code cleaning for DynamicIndexableContentMonitor

See bug: #16484927 Add "launcher" as a synonym for "home" in settings search

Change-Id: I819f4e5f7bd5e9a7882609206b2733ea1912fc69
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3f3426e0d95aed9ab651a703a3a7e33833cd4741 23-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add Home / Launcher apps indexing" into lmp-dev
6d839875b74f1570e8807005c586298beb677413 22-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Revert "Revert "Move global sync settings to AccountSettings.""

This reverts commit 4869faf46559c54a34b969b5ae5391a208e723af.

Change-Id: I58df9b8161d711a9c0187af1f1a1dc279fb9d9ab
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
dcf59dd82ca5a5b211461f1c2825623325c3811c 21-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16451628 Settings app crashes for intent: android.settings.ACTION_APP_NOTIFICATION_SETTINGS

... and also crash with intent: android.settings.ACTION_OTHER_SOUND_SETTINGS

- add corresponding fragments to the ENTRY_FRAGMENTS array

Change-Id: Ic0c10841dfd7bc87d8573530129290ed172ff608
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
712df6cb7050a87985ab30b8d1bad909a6bc09aa 19-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix the way we select and apply Themes

- do not override the DialogWhenLarge ones (they have their purpose)
- apply the correct Theme to SubSettings and then as a consequence
to the SwitchBar

Change-Id: I83adabf72da03051f03fbd2121e1e71217fc0c6a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d40dd45c18a55d574d65b3a0ac16b59d76027049 19-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix overdraw and do some layout optimizations

- use a specific layout for the Dashboard and for the Preferences
- use a specific background for the Dashboard and for the Preferences

The main idea here is that you cannot have the same layout / background
because the Dashboard is using the "Z elevation" for having its card
"poping up"

Change-Id: I42b7c91efea14315b8a60cf3876938a7f1d1e0b3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4869faf46559c54a34b969b5ae5391a208e723af 22-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Revert "Move global sync settings to AccountSettings."

This reverts commit 64fde6f4e9404a363f577a9fda424affcb5138e4.

Change-Id: I61940b6e2936c7c7f048af222602226e5588c268
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
64fde6f4e9404a363f577a9fda424affcb5138e4 09-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Move global sync settings to AccountSettings.

It also makes AccountSettings respond to the SYNC_SETTINGS intent, which
it is currently triggered by Calendar and could be triggered by Gmail.

Bug: 16076571
Change-Id: I2c55262a87e46ba88f36a90a2f8f27d08f88e851
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
04e1acc12b9d09cd98fa551267abc292d82d4c37 21-Jul-2014 Alan Viverette <alanv@google.com> Remove inversion quick settings toggle

Also removes remnants of contrast preference screen.

BUG: 16303790
Change-Id: I9833b53e187e5f41c0442bcbaf9b728d55577d88
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e817a66e83191c0ae74acd53a538a0965eba2683 17-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15702424 add-wifi setting screen has no title

- pass the missing EXTRA_SHOW_FRAGMENT_TITLE_RESID
- define a new string for the Activity title
- code cleaning: remove a non needed call to getIntent()

Change-Id: I430d59c0225c6e7f23e78edf5644d07ef33a9d98
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3033ce0723103b55b1b5a53145c05e143b5bbfd6 15-Jul-2014 Amith Yamasani <yamasani@google.com> Handle android.settings.HOME_SETTINGS intent

Launch the Home picker activity for the new public intent.

Bug: 16303152
Change-Id: I91cfffdec6c8ed13d3b0e57d7903b4a06dcbb6e6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
cfc7f9d9600f7b4514ce9608314874bf1023eb21 04-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Remove old accounts tile, replaced by a separate screen

Bug: 15815948
Bug: 15819268
Change-Id: I3b6978cff346c73cca1d6a2c209ffe4c71808244
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c9dc66d6059a5bcc867ab2046c59f969a13c46d7 01-Jul-2014 PauloftheWest <paulofthewest@google.com> Add BT message access

+ List available email accounts
+ Allow for turning each account on/off with switches--making the message content available to bluetooth devices that can read emails (like cars)

Bug: 15720425

Change-Id: Ia0c91c1e74a2644fc99a8b902c42212453d8f86e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7837b999862cf341b0f124be7ace1dfc64d0a5a8 24-Jun-2014 PauloftheWest <paulofthewest@google.com> Added Saved networks UI to Wifi

+ Added Saved networks to Overflow menu
+ Moved WPS Pin Entry from Overflow menu to Advance Setting Activity
+ "Automatically manage Wi-Fi : Let a Wi-Fi assistant manage your connection"
+ "Wi-Fi assistant : <selected assistant> [cog secondary hit target]
+ MAC address & IP address list items have the static italic style
- "Avoid poor connections" from Advance Settings
- "Wi-Fi optimization" from Advance Settings

Bug: 15698824

Change-Id: Ieb25b29874752db07398dcb200ec07862779f507
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
5a62d94a2b1b5a93911e1f2cc9f3190e2f22622c 02-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix again bug #15940103 ACTION_SYNC_SETTINGS shows the non-functional
...left arrow button at the top (the back button works)

- the android.settings.DATE_SETTINGS Intent was showing similar issue
so this CL fix it on a more generic basis

Change-Id: I4c26a5a8dc3eb090d26967fa607449a4fe6631c6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
5b3c3c00b0a280e29f3767878913f80274bd4993 01-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15940103 ACTION_SYNC_SETTINGS shows the non-functional left arrow button at the top

- make android.settings.SYNC_SETTINGS Intent behave like a Shortcut
(no Up affordance nor Search)

Change-Id: I573feaedeb062757fb893417e8746d17a09e66f4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2a8354f693a6d988a8290d96e3d13bce1eb1606c 27-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #15431722 Uninstalling an app via settings leaves user on screen ...for the now uninstalled app"
58146c2b2fa24d774840a07cf697ad315baf4de0 27-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15431722 Uninstalling an app via settings leaves user on screen
...for the now uninstalled app

- add the missing call to finish()
- fix also a typo

Change-Id: I3d365db1fa1e6ba1efeddae022d8c2136af6380a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3939cd70b1605eff9ac6cfa213b73a49283e134a 04-Jun-2014 Alexandra Gherghina <alexgherghina@google.com> Add work account settings.

Bug: 15467756
Change-Id: I13b5a0bb3967611d0d24b575bfc15d9bfaad4cfa
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3a1bdaaded7617791895cdaaf179197adec35e45 25-Jun-2014 Kenny Guy <kennyguy@google.com> Merge "Fix bug with building args then ignoring it."
ac1e20ebfc233a4894fa04a29b5d86602ee188ee 24-Jun-2014 Kenny Guy <kennyguy@google.com> Fix bug with building args then ignoring it.

Change-Id: Ie3b19b44386812e68e1593c5d257399ac043fd9f
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
5b7a100dbd9135b6b87ae4cc9ff3a5ece123bcf6 24-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15782664 Need to remove Search and Up affordances from App Info

- make AppInfo like a shortcut

Change-Id: I6f63cdbebce8e245cc5a8a673afcbdfc309d901a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
0d643fd182d37d2e8ee5d547b80d80423a5ed98d 17-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix Up and Search affordances

- UP is also shown for a SubSettings of a Shortcut
- Search is never shown for a Shortcut (SubSettings or not)

Change-Id: I5b87cf773ea0266a0f5dd090613bbbba905be330
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1c3203e83efed2d5c257da8e4f5fba4844b6fa47 11-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Update Settings redlines per UX request" into lmp-preview-dev
da8babaedf45caf55eb77320f0c3ea873d195c4d 11-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Update Settings redlines per UX request

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: Ie95b6cee701847d7f76f2e2a72aaf8fc64bc4dd9
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c7f8e8ce69e80ea495472aade5f8569c6583c5e8 05-Jun-2014 John Spurlock <jspurlock@google.com> Settings: Battery saver settings sub-page.

New battery saver settings page, accessed via
the power usage settings overflow menu.

The settings page has a master switch to toggle
battery saver mode, feature disclosure text,
and a preference to configure the automatic
trigger level.

Remove developer checkbox now that this option
has a real home.

NO_SQ: multi project change
Bug:13329308
Change-Id: Iac54238f3406439711b44a3c17f220ac5e370a37
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a9e77993d1f82a230ff381134d4a22eff4a907cd 09-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14499324 Label of the "Language & input " page doesn't get updated
...as per the newly selected language

- use also title resource id when possible

Change-Id: Ibeb95d605cd79910c18f4529b749645c9ed0fc17
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c9548c17471ff7d7826a769593250ca3467a2ba5 07-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #15460001 "Cell broadcasts" setting search suggested in wifi only device though setting is not present" into lmp-preview-dev
dba577f8f017baac0086c185579340db1c9281d9 07-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15460001 "Cell broadcasts" setting search suggested in wifi only device though setting is not present

- implement a BaseSearchIndexProvider for WirelessSettings
- fix Context passed to the Index: now use an ApplicationContext
- also use the correct Context when dealing with Settings SearchIndexProvider
- also makes impossible a rogue BaseSearchIndexProvider to crash Settings
if not well behaving
- last, fix icon used for "NFC & more" search results

Change-Id: I8b5cc999fa57a9e1977ee57394801d54cf3dbabb
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4093e40e18f2e8d395ca467f54aef6e763c394f6 06-Jun-2014 Amith Yamasani <yamasani@google.com> Show user management UI if a managed profile exists

Show UI even if flags to show multiuser UI are off, if there's a
second user on the device. This way there's an affordance to remove
the user.

Don't show the "Add user" item though.

Bug: 15447068
Change-Id: I40273005d6d8d66aed486328615acdab71d51fa4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
3d35ec729256d4a1e1796be3e9d858eefedda23d 06-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15469483 Search menu should not be present when Settings is launched as a Shortcut

- create the Search menu only for non shortcut launch

Change-Id: I8f83fb6c199509f2b2215a20b19f92e3d736b733
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
bb05178dba21509d5b26ae0bd718a471b8c6cd5e 05-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15434475 Developer Options do not show immediately after activating them

- allow Dashboard categories reloading

Change-Id: I02d9f1e8ed4d8b8b670835a8d717c6c08b49fe05
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4e4cdeffdb6087c953f44808f14f18554a749bda 28-May-2014 John Spurlock <jspurlock@google.com> Settings: Remove sound settings.

- Move the remaining conditional preferences into
the combined Sound & Notifications screen.
- Refactor the "Other sounds" sub-settings screen to
provide a home for the new preferences.
- Migrate docking sounds, conditional on config.
- Migrate docking media, conditional on config.
- Migrate emergency tones, conditional on CDMA.
- Move all boilerplate preference <-> setting plumbing into
a separate helper.
- Since some preferences in Other sounds are now conditional,
create a special indexer for searching.
- Remove SoundSettings (and xml), create aliases in the manifest
to avoid breaking shortcuts.

Bug:15279526
Change-Id: I5ae3ecda2f899b1948f7908bd217a799326c2c56
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
42c4b0abe5578a7812844ad5205ffc3b87cf3072 22-May-2014 Fabrice Di Meglio <fdimeglio@google.com> DO NOT MERGE: Optimize Dashboard loading

- prevent loading categories twice
- add some logging to see the time taken for building the Dashboard titles

Change-Id: I31724c0e66fe3b453a87f12476f58db84c73423f
(cherry picked from commit b644f29313c086806d1ba5ad3db8ac36d2bf3c4f)
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
59a4055cbb8f5a7b1b0c904bbc4ffc03d8a1239f 24-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Make smooth transition between Search fragment and the others

- use TransitionManager.beginDelayedTransition() and
getFragmentManager().executePendingTransactions()

Change-Id: I5d583916afb8b87dfe2b17b4e685ef5384c5fbd2
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7e4855e8f644bdecf68ec65b8c1b7c08624a4876 24-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Update Search recents behavior

- per UX request
- Search recents show now by defaults with the recent searches
when the SearchView is empty
- when we press on a Serach recent, we are showing the Search results
and the recents are disappearing
- when keying text in the SearchView, we hide the recents and start
showing the results
- we still save the Search query when hitting on a result

Change-Id: I6c2be21660a30f6973dea27d4852b2068a05963d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
680b064b293888ea47a6211943b51bee3adfb70d 21-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Optimize categories loading and refresh

See bug: #15091992 Opening sub activities in settings is very slow

Change-Id: I6e2e7a07fed72f35850da0614adaafde94618a4e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d2b64f339adb8f019e3c712e388e35830d8b68a9 20-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15001610 Java crash in settings is observed while adding Google account on wiped device

- update Settings main layout to be able to show the Buttons
- make WifiPickerActivity a SettingsActivity and remove dead code
- fix reference to Buttons for using the Settings IDs instead
of the Framework ones

Change-Id: I23bfd1b8290fc007e6e80aa9a6297e55e7f6004e
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d8aec08fa96c42a61bd6ead2aa9859b5b67a3f2c 20-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix potential NPE with ActionBar and SwitchBar references

- in some rare cases (SetupWizard and select WiFi during account
creation) there is no ActionBar nor SwitchBar. Prevent any NPE
coming from them.

Change-Id: If52b9cdee8730c90c5da3067a1a35ebdd0255470
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
5f995727cc2e4bd27d26a50f3a565fb677fdb294 20-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15080198 Enabling developer options requires restart of settings to enter

- fix Dashboard categories refresh issue

Change-Id: I5bb7fc4a1410df8f5c2d2d13f7625a1ccc8893c3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
41937766981423c9252e12e3319b2e7532739627 14-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Introduce SwitchBar widget

- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
35062d6983e352f5cb6c4a6bbf3c1e4e214d44a9 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Make more room in the ActionBar

See bug #14898161

- allow Search Option Menu only on the Dashboard (and no more
in the Settings screens)
- push the "Start Now" Day Dream Option Menu to be a real Menu
so that we can see the "Day Dream" title

Change-Id: I4a7c21fb3599ada8efc82bd5bd8c9f5049937ceb
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
15826d4ea1428b3d1edb86866ca57a93c2252bda 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Mode code cleaning: remove obsolete references to EXTRA_NO_HEADERS

- the EXTRA_NO_HEADERS flag as no more meaning as we are showing
the Tiles (previously named "Headers") only in the Dashboard
(which is the main Settings screen)

Change-Id: I55656de0d28ca9c84adbe6647d870838b4ac230b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e9326d276135b657738d851e0a56df447f09567a 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning: remove all remaining references to the old Header class

- goodbye Header(s) !

Change-Id: Ied27f1f01dbed9c51cc74d28800d9ca7cab47d5a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
488cae39dab2e8c298e8a1f1eec37bf0d96a83d2 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Remove Print Settings if the device if not supporting Printing

- remove the Print tile if the device does not have support for
Printing

Change-Id: Ia484eac6202324ed2b92c1c2f6162ed867b2619d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
eab58139f493698adbe0ecb7ed5ac4cf2ed51e1f 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #14323469 Settings crash on selecting keyword from recent searches ... after changing orientation"
8c3b0ce7120da882082eed533462090c4feadff8 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14323469 Settings crash on selecting keyword from recent searches
... after changing orientation

- set the SearchView for the SearchResultsFragment when the SearchView is
instantiated in the onCreateOptionsMenu(Menu)

- take care of the correct showing of the Recent Searched (suggestions)

Change-Id: Idfa17436d4a2436e0947ce1e1692355def3821a3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
02d1aec28678485c7da0fa1634756bdb90e96d8e 13-May-2014 Alan Viverette <alanv@google.com> Simplify accessibility display adjustments

BUG: 14680114
Change-Id: Ifd66256f4a8301d4c159f62a4211a2fbaaa6111a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7cae7f43e96d5790302a9645ee74fafa6a6fcab7 10-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14392376 ActionBar icon / title is focusable when it doesn't do anything

- set ActionBar.setHomeButtonEnabled(boolean) as it should be

Change-Id: I93adcdf91cafd5b7a6fea88ec917f12a39be64bc
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a7e8b27a8597acf493cd0566cca4f2e7a0da23a2 10-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #14302110 Settings crash on hitting back key from Wifi recent searches page"
3d5aeb766bba496fb9e41d119eb4a31e7afa1f2e 09-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14302110 Settings crash on hitting back key from Wifi recent searches page

- prevent NPE on mSearchResultsFragment

Change-Id: I063ff17e3936be7e608a37bd6a787946b4a310fe
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6c088cb221bb43d47be065387231ffa7192ff211 08-May-2014 Julia Reynolds <juliacr@google.com> Settings user restriction changes: debugging features.

Replacing restriction pin with a user restriction for developer options.
Bug: 14081992

Change-Id: I9a71c256fbd20428b4bd2ae12939c9a50d7b5f11
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
37fe059e793ae96436f3a6d6fc2036324b2e5a5d 30-Apr-2014 Amith Yamasani <yamasani@google.com> Merge "Fix crash on settings launch in secondary user."
a97089d389338ca8e3d970b00dd13ffad732b5c1 30-Apr-2014 Amith Yamasani <yamasani@google.com> Fix crash on settings launch in secondary user.

Bug: 14403545

Make sure the tile wasn't already removed for other reasons.

Change-Id: Ia2b5528c01dbfba4919afaf8352e45db9ef345c3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c9afadb04b00598f5988101681089290cf14f79c 30-Apr-2014 John Spurlock <jspurlock@google.com> Add condition provider access to settings.

Pull NotificationAccessSettings out into a reusable base class
and reuse all of it for a new condition providers settings page.

As with notification listeners, the entire section is hidden if
no apps provide conditions.

Change-Id: Ib5273f3362e392d99647347c23a514e4590f7ac9
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
769630c8956fa844545d964166da90cc802fabac 24-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Settings new dashboard - part 2

Introduce the new Dashboard (a grid like presentation of
Settings top categories) per UX specification.

- the Dashboard is composed of "categories" and in each of them
you have "tiles"
- implement a new layout for showing top categories
(DashboardContainerView). This layout basically acts like a
grid
- depending on the device configuration make the grid with 1
column in portrait / 2 colums in landscape (phones) OR 2 columns
in portrait and 3 in landscape (tablets)
- take care of Accounts adding and removing (as it changes the
number of tiles to show)

Also remove all the old code related to Headers

Change-Id: Ie29944132c1b4c3f7b073d5a7d4453b8f5ec19a7
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
63bbb8e4fef5d0d0a5fa9c7656daa7ea160fd51b 24-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Settings new dashboard - part 1

- make the Settings dashboard definition be hierarchical (non flat) and use
categories and tiles
- code cleaning: remove mHeaderIndexMap

Change-Id: I16581a736ac5c8388a182d83159161fe3bb04f4b
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d297a5840230b769a3c7ad8b85232968a7077f64 23-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add saved Search queries feature

- update SearchResultsSummary fragment to have two lists:
one for Search suggestions (saved queries) and one for
Search results
- a tap on a saved query will launch that Search query
- show the list of saved queries when tapping on the SearchView
- do some fancy hidding / unhidding of the saved queries list
and results list

Change-Id: If15055ab78b0ec5eef4e543173dc7b866bd08e27
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
42aacb1f509f0bb69cf421b9b5dedbf769d0f4a8 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke... ...interface method 'boolean android.view.MenuItem.collapseActionView()' ...on a null object reference"
23ae00c1d87d64578cd62da1894ee25da531ca11 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke...
...interface method 'boolean android.view.MenuItem.collapseActionView()'
...on a null object reference

- fix cases where mSearchMenuItem or mSearchView could be null

Change-Id: I2b0256fe2c8c1b426d4e0799881dd2f13480a00a
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a5c0c17304ded7ae5b4cfa3a233b45f19039d08c 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Remove non needed code for HeaderAdapter"
f2dee29d66b1d97c693522c517659961e2b76a98 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Remove non needed code for HeaderAdapter

- before, we were showing a Swich for WiFi and Bluetooth entries
in the Headers. As this is no more the case, remove the code
that is no more usefull.

- as a side effect, we are also removing the call to update the
Search Index that was running when the Settings app was resuming
or pausing.

Change-Id: I26b40df5c7a664d196a249840638d89909b6bc24
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d33b04ff06ff963d238724f5a2d7fb13a2194783 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Search - optimize when updating the Index is done - part 2"
5cda21b449a56de42f7868bdcdaa31bb6f587c03 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - optimize when updating the Index is done - part 2

- well, fix a regression when launching WiFi / Bluetooth settings
from the Quick Settings: we can only get the Intent properties
after the call to super.onCreate(...)

Change-Id: I21abbee610ad53dd0022c645268e55a6ba31a7b0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d4d829ff9ba82284d4323346a07cfe2f353a1a4f 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Search - optimize when updating the Index is done"
5ebabfcd35dd00a1d5beb9bcaca03574ae09b4e8 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - optimize when updating the Index is done

- we should only try to update the index when the Settings app is launched

Change-Id: I0543d518ea3e06804ce6fb09c987ea722bcc87cd
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4a35051565b0ce6d29313c3e4ffe19e1dde78db0 08-Apr-2014 John Spurlock <jspurlock@google.com> App-level notification configuration settings page.

New sub-page off of notification settings to ban/unban
apps and navigate to an app's notification configuration
activity (if configured).

Centralized all notification settings artifacts under a new
settings subpackage.

Bug: 13935172
Change-Id: I53b75c02f0091900734d17dc9217035d0df9b466
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a32707664f85b77602d1fe45458e92fce1448ce2 17-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - add "live" search results

- now it is possible to have Search results directly when
you are typing (and not only when you press on the Search button
in the IME)
- implement onQueryTextChange(...)
- take care about re-runnin the saved query when the app is resumed

Change-Id: I021c8a9a95b50dce69ab6dace81eecb2fb188f18
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7a6bfd132cac4dcff72e3adcdd68a7ef777cee12 15-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Update DynamicIndexableContentMonitor

- use factory for creating Intents
- add missing case in handlePackageUnavailable() for IMEs
- move DynamicIndexableContentMonitor to the "search" package

Change-Id: I8d74b28fb9183827db50c6de4b4543b4ff21acc0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
990159abaad7f314fbe1f9eaf064a088806ffb19 15-Apr-2014 Svetoslav <svetoslavganov@google.com> Adding search for dynamic accessibility settings.

The language and input settings are highly dynamic and this change adds search
support for that. This category depends on installed IMEs, input devices, user
dictionary configuration, etc. We not only compute the right preferences to be
indexed but also track related system state in the settings app to rebuild the
index if needed.

bug:14066763

Change-Id: Ia89d9e35bd79abf8d74614691aedf4ca9b11b6f2
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
853e47181dc116ba95e91463735dc79ad4bdc95a 14-Apr-2014 Svetoslav <svetoslavganov@google.com> Rebuild search index if dynamic setting packages change.

We have some settings that are dynamically generated based on what packages are
installed. For example, accessibility services, etc. We now update the index when
the relevant installed packages change.

bug:14056852

Change-Id: I6143382bf2c7399d3c80abea0835d717935a9200
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
df278aa959b5e0a5d2b5d9152b7013d22757cd17 12-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Update SettingsSearchIndexablesProvider for supporting queryNonIndexableKeys(...)

- add the new requested method "queryNonIndexableKeys" from the contract

Change-Id: I72be47851a7e19e3f14960f4e2b60c3e952f1fac
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
821a0729ad4060b54a8311c957534117b84bc881 08-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13883976 Settings crash on long-tapping and swiping in Language & Input screen

- fix potential NPE

Change-Id: I12045f420d5b2a4f349e59a04141153cd2e46378
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e5687b1b32e5c179ce42981119012cc918afa75a 08-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13744434 Stability: ISE in Settings: Can't switch to header...
..that has no Fragment nor Intent at SettingsActivity.onHeaderClick(SettingsActivity.java:654)

- satisfy the Monkeys has they were able to click on "WIRELESS &
NETWORK" header which is a Category and normally non clickable...
(so probably a race condition)

Change-Id: Ia33d2b6e55e910409a566e5f05c1e3bae8008807
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java
911fb2ad907d47a882c023b871c6457db32359f8 05-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13817456 User not take to previous sub setting screen when Home
...affordance is tapped from second level sub settings page

- start an Activity instead of switch Fragments

Change-Id: I0e47d6539a3a048d7aa25bdb125c4c99031f9e85
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
bb16fd836a5347413e592acbffa189156b28bc53 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13813608 Launcher back button does not take you to previous...
... settings after orientation change

- gasp, there were some issues in the way we were tracking if
a search result fragment was opened. Simplified that code.

Change-Id: I7f8efb3a5aab1a275193f7de15ac50ca33bdad16
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
bbdada8fab2dcc28e869baca7eb7a57e8f0ec88b 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add more logging for onHeaderClick(...)

- log Header title and position

Change-Id: I07f7e8c50613b97609a3ea462b7a8e8fcc415f70
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
1800a9f3e7027e8ab8ffcab51715d39b126bad43 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13735413 Particular settings name changing on device orientation changes

- restore the title correctly when we are restoring the Settings App

Change-Id: Ibd56c52b703620e3d2b8e524e6b3caf35f3c8980
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b731dd0554744d91ca89d37ff7c82f8d6e5b502d 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix Up affordance when restoring Settings app state

- save the state of the Up affordance and restore it

Change-Id: Ia00e929b1bbcdaa51280f9b2bb9322f8594c5a37
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
086c76791f766788e6fe6bbddf6376badccd3c2c 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning

- remove dead code and some constants that were no more used

Change-Id: I32d19d74e5b271f9e7c8938e4b3c79175bdf69ee
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d6985df419549fbb7d420eced8e89f0429e49d71 04-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13794200 Settings crash when screen is locked and Power Usage...
...Settings is launched with an Intent

- fix the NPE by checking if mSearchMenuItem / mSearchView references are null

Change-Id: I7518c8360af88a20df780be8cb89360a26cdb8d0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a41707200b6628376e8fb575e782d8228c0d32a2 03-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add indexing for ListPreferences

- now support ListPreferences and save the "entries" attribute
- update Index database schema (and increment its version)
- do some clever stuff when showing Search results: if there is
a "$s" or "%s" in the summary (replacement strings), just use
the entries instead

Change-Id: If36595c3816706b6349faff7d3c2e725d3ea33f4
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
9593782d154f378a0c911cd015d410c18fe74a92 01-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add indexing for Notifications preferences

- also add indexing of CheckBoxPreferences
- also some code cleaning

Change-Id: I2943caaec3d64fb2a6be85168454fc76fe572afe
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
d25314d3305ed1a07b53991a978cd71219ef2a10 22-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Settings - update for new UI (no more Drawer)

- follow the UX spec by no more using a Drawer
- the Dashboard is now a Fragment that contains the list of Headers
- the search results are also put into a Fragment that is replacing
the initial one (Dashboard or other) when expanding the SearchView
- use a SearchView for query input
- when tapping on a Header or a Search Result, re-launch Settings as
an Activity so that we are benefiting from the Activity stack for
UP affordance and BACK button
- manage UP affordance to show it only when needed
- move some Actions to the Menu in the ActionBar for allowing space
to the Search action and removing some clutter
- fix an issue with the Index and WiFiEnabler and their cached Context
that was not updated when there was a Configuration change
- simplify the SettingsActivity code by extracting some inner classes

Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
fa7dc240e978b1b77bb5c80a78cd1f8c77648301 13-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add external Preferences indexing

- define SettingsSearchIndexablesProvider as an internal
SearchIndexablesProvider
- protect access thru using android.permission.READ_SEARCH_INDEXABLES
- update WallpaperTypeSettings and WifiSettings for taking care of
the new model
- update the Dashboard for taking care about external Icons for the
search result
- update sqlite model/version for taking care about Intents
(enable launching external applications for showing the settings)

Change-Id: I2e38599327e6480f1754f52666becce0884cee9d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
8dcea48d7193b052b0ed039c0cbfe99f81237daa 13-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13440372 More option is displayed with Email/Gmail icon after...
scrolling through settings options

- force the image and background to null when needed in the Adapter

Change-Id: If4c1769dcd1651b683a34001dcd922c6554252c0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7cacc1200917f5cf7067f9c667f3bccee4f94e02 12-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning - class names

- use class names instead of their static string representation

Change-Id: I82ebfc087bc2bbadb9076c5750265bf400ff4224
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b8dfbf140986a9c0781f268ea40914063f026436 11-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add dynamic Preferences indexing

- introduce a new private interface "Indexable".
- refactor Wallpaper and Wi-Fi settings to support this new
interface.
- only index saved/remembered Wi-Fi networks
- also add the capability to remove some data from the Index.

Fragments that want to publish some dynamic indexable data should
implement the "Indexable" interface and provide a static final field
named "INDEX_DATA_PROVIDER" with is the Indexable.IndexDataProvider
interface for providing the data for indexing.

Thru this interface the Index can ask what are the data chuncks to
index.

Change-Id: I31e7212c87b8218efe1a8f3028147cb19e119be6
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
b643cbf6d60bb4cd43d3191106d68680fffe97b5 10-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13394626 Settings app crashes on changing orientation to landscape mode

- fix NPE on mInitialHeader.id

Change-Id: Ic1017f5a8a20755bf7f36b1f3406d45dcc80ae8f
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
75eabc20b9fa9c316e01d954fb09c7633b805370 08-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix Drawer selection when using BACK

- select the initial Header if needed

Change-Id: I2d884fbab9a49cc3385dbe1b311f9e0853d027d3
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
c95be4fbb3ec437517a2190d88fbda5068dba8df 07-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Close the Drawer on BACK button if the Drawer is opened

- otherwise (if Drawer is closed), BACK should work as BACK
into the Fragments BackStack

Change-Id: Ic7f500eb77f35e2142a40e6c9e34c4e7f0ec6428
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
832e54618588fdd31397b1779411af06e58565d7 07-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13322417 stability-sys: Java crash in com.android.settings:
...java.lang.NullPointerException: Attempt to read from field
... 'long com.android.settings.SettingsActivity$Header.id' on a null object reference

- fix the AndroidManifest for missing meta data
- fix NPE causes in getHeaderTitle()
- update how we are putting Fragments on the BackStack

Change-Id: Ifc0bba744c3b2a0603c2f11f711ef493cbacc9d2
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6f0739a3d9a9eca1591ae6bada1dd4d1d92c0def 04-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Search to the Settings App (initial release)

- add basic UI for search
- build the search Index thru sqlite FTS4 (faster than FTS3)
- create the search Index on the fly depending on the locale
- re-index if there is a configuration change
- re-index too if the Android build version has changed (usefull
for an Android OTA or when a new Android version is pushed as
we need to recompute the Index)
- search thru "title" and "summary" Preference's data
- group results in the same order of the Settings categories
into the Drawer
- rewrite "title" and/or "summary" if they are containing
an hyphen "\u2011"
- add Preference Keywords (only for the Settings App) in the
Index and allow search on them (Wi-Fi network preference is
used as an example)

Known restrictions:

- we cannot yet search for "dynamic settings"
- ... nor we cannot search for settings coming from an external App
(like the Phone App and its related settings that are surfacing
into the Settings App).
- will need a few other CLs to add more keywords (and have them translated)

Change-Id: I017a4d6c433f28c257c08cacc1bed98c4c517039
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6d534a1da52667c6c41b723d4c203fe0d59a2676 03-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix Drawer selection and initial Header

- now select the correct header when launching Settings shortcuts by
taking care of initial header
- also fix an issue when having to "double BACK" on the initial header
- some code cleaning (no need to test non null references)
- move code to group it by topics

Change-Id: Ifdf6dd7f5605e858b324d00165f0a5e8124efdfc
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
947d8143b97a0c84bb15a3fccc2562c98e1ffc04 03-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix Fragment BackStack and Titles"
7f36c272c4d4a05a04a21f24865d33cf3294a2ab 01-Mar-2014 Matthew Xie <mattx@google.com> Merge "Update context on resume calls for BluetoothAdvertisingEnabler and BluetoothEnabler"
72438063453d2141218cf7fa4d8c1da6de6cbf4c 28-Feb-2014 John Spurlock <jspurlock@google.com> Zen mode configuration panel. (packages/apps/Settings)

Read-only version of the configuration screen for
Limited Interruptions. Defaults to the logic implemented
for this mode, namely block notifications except for
Calls & Alarms.

This settings panel will serve as a target for the
configure affordance in SystemUI.

Change-Id: I33fd1e11ab76dbb7044bb94cb096cd892945947d
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
8eb3f0fbf2ced7291167755fe74ce50164eb3a9e 28-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix Fragment BackStack and Titles

Related to bug #12939786 and bug #13223838

- first use Fragment BreadCrumb for managing Titles and Back
- consider the first fragment as the initial one (both in the
normal case and in the shortcut one)
- fix usage of the Fragment BackStack so that in all cases we
are returning to the initial Fragment before exiting the App.

Change-Id: I96989d14f4e88688747b93ab9fadd96aea214a2c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
0e2f949c90cc3057243020b51f1bdada02fd87fd 25-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13140648 Settings needs to support the new Quantum Paper theme

Second pass:

- use Theme Holo for the Drawer too
- add a temporary background for Drawer icons (so that they dont mix
with the Drawer background)
- remove the "More..." icon as it was not needed

This CL will show that there is a discrepancy into the Drawer icons
size (some are smaller than the standard size, some other bigger).

This issue will be fixed when the new set of Icons will be delivered
by the UX team.

Change-Id: I431882df9b98157e98a1b735f31d9e77ef846767
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
dca2806a23d202384eb9b37a5026325f8fb08476 22-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Implement Holo Light Theme for Settings

... and use Holo (Dark) Theme for the Drawer as requested by UX

Also remove the Wi-Fi and Bluetooth switches in the Drawer per
following UX specification.

Change-Id: I4fc17481255b5db337a887033bc831ded0d2d701
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
74309ea53a5a72430bafaa8cea4d82d4e24f61bd 20-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13058470 Cannot add account -- Settings app crashes

- revert back to an Activity instead of a fragment. This
is a straight reverse of the changes introduced for trying
to have a Fragment.

Basically ChooseAccountActivity was previously an Activity for
choosing an account type. If the list of account types was containing
only one item, then the ChooseAccountActivity was just a pass thru
and was falling back to the only account authority available.

In the current reported bug, this was happening by disabling the
Email app and thus having only the GoogleAuthenticator as an
Authority.

Then in the onCreate() the ChooseAccountFragment was seeing that
there was only one account authenticator and issuing a BACK button
press. Too bad, this was done into a non finished Fragment transaction
and leading to a crash.

All in all, we NEED to have an Activity and cannot use a Fragment
in that case.

Change-Id: I4a867a25fe9580929ec50a6775105adac1f88c52
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e611b8590d8da69bb95e29a7faa5200a95b427f3 19-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #13084552 Correct list of accounts are not shown when tapping ...on type of accounts(corporate,google etc.,) in Settings under Accounts section"
61a77ab51d26e142b3681a020b21366a17a39da7 19-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13084552 Correct list of accounts are not shown when tapping
...on type of accounts(corporate,google etc.,) in Settings under Accounts section

- allow Account Type (corporate and the others...) entries to work.

Basically as they are sharing the same fragment we could only hit it
only once (and the first hit was winning).

Change-Id: I16683fc7342564a8ed1a4853a576166ab4d91df9
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
2858b790ad92bb39e26150d696432f0b717bcddc 19-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13027956 For restricted user launching Settings app from all apps drawer
...by default opens wifi setting screen

- add the Dashboard to the list of restricted fragments

Change-Id: I7787ed7c9f2a53ea1047b6ab860ded50e4e5d840
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a504c4dcdf18be1be9f67cf83b506638f19077b8 15-Feb-2014 Matthew Xie <mattx@google.com> Update context on resume calls for BluetoothAdvertisingEnabler and BluetoothEnabler

The saved context could be invalid if not updated
bug 12991455

Change-Id: I93abb8420d0fa53add1f0e843a5069d59743891c
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
a7ad619af46baf78f7d6b65a0482aa387f4a6784 13-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12991557 User taken to previously closed setting option

- fix behavior when we are closing the Drawer. Now will not trigger twice the same action
- fix selection in the Drawer for "Add Account": it basically should never be selected
as it is more like a button
- fix also Titles stack when launching an Intent
- remove some dead code

Change-Id: I196ad9fcd0599703f2abb902b088fbda9b4690a0
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
de40d9ed2f75f51108122ca31ef62f554a89831f 12-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix title when changing from portrait to landscape configuration"
5529d29f6c22e9f28444ca1c0aa9ea2534264220 12-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix title when changing from portrait to landscape configuration

- save the titles stack during onSaveInstanceState(...)
- set it back when creating the activity if there is a savedInstanceState
and restore the title to the last item in the stack

Change-Id: Ic6c2714f5474275c9f55cc4d6c70d14f6a8cd993
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
e6c9a5da01e4c1d8a83561404590a8ad3ab75890 12-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12979102 Menu (Reset to default) and Add icon missing in APNs

- revert the changes on the ApnSettings to be again an Activity...

Change-Id: I7a12e25456f0a0df0f7618183f49fd8db10a5441
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
6502720566595543b1fbb79370319a0dd700036f 12-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning

- remove duplicate reference to current header (mCurHeader) in favor of mCurrentHeader
- clean onSaveInstanceState()

Change-Id: Ia9322471f0b0d13d51e105c8fd625774d8867fdc
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
7ce7c40dac0fa8d27b28b82084d3c3fe7f2f524f 11-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12957228 Java crash in com.android.settings: java.lang.IllegalStateException:
...Can not perform this action after onSaveInstanceState

- prevent a click on the Drawer's Headers when the App is paused / finished
- register / unregister the DrawerListener when needed

Change-Id: Ia270ef27b23c66d55565bbb73d4f6a6531b742d2
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
10afdb82aca7c6345d2aace30c7b66238e6bfb3c 11-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> There are several painful issues with the initial CL. Doing a revert for now and will rework this.

Revert "Fix bug #12939786 BACK should go back into the Fragments BackStack and finally to Overview ...and then exit the Settings App"

This reverts commit 4cc95a53c2d9080095c4e1e06f815b8bc7a2cdfe.

Change-Id: Iaa21d4771d0b004eff3d8e68b91b546a633d8f23
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
4cc95a53c2d9080095c4e1e06f815b8bc7a2cdfe 08-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12939786 BACK should go back into the Fragments BackStack and finally to Overview
...and then exit the Settings App

- fix the way we manage the Fragment BackStack
- revert back ChooseLockGeneric to be a PreferenceActivity

Change-Id: I3c366b4be606e2e211facd0299b9a2de5cc6ea79
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
ca915668af1dfea973c2789d9ae48c958ca8362d 07-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12910775 Settings crash after tap on Access Point Names under Mobile networks

- ApnSettings is now a fragment so introduce a new ApnSettingsActivity
- ApsSettingsActivity will use the ApnSettings fragment
- move the getListView() call to onActivityCreated(...) as the ListView
needs to be created before this call can be done.
- add also an alias for the old activity name ".ApsSettings"

Change-Id: Id228722d7f34415d4b036282f0845e28546111df
/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
dc77b738a7697e57f1f630b4fe72f25835016d80 04-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12890490 Crash in Settings observed after tap on Preferred Engine settings and Cloud print option

- when setting the Fragment's title use the CharSequence when the titleRes ID is "0"

Change-Id: I54e5379172632acfc967b5ea401ba90f73b41748
/packages/apps/Settings/src/com/android/settings/SettingsActivity.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/SettingsActivity.java