Commit Graph

690 Commits

Author SHA1 Message Date
Daniel Sandler
70b5999839 Refinements to notification controls in Settings.
- the switch is now a checkbox
- a dialog is posted to explain the ramifications of
  disabling notifications
- the user may no longer disable notifications from system
  apps (signed with the system cert); this is roughly the
  same as the constraint on disabling packages (with the
  exception that launchers may not be disabled entirely, but
  their notifications may still be disabled).

Bug: 6493120 (checkbox)
Bug: 6448988 (confirmation dialog & protect system apps)
Change-Id: I6c7a47ba2eb943936d7f59cfc807a4390acc980d
2012-05-17 13:21:57 -04:00
Dianne Hackborn
309c5dcee1 Rework manage applications to be page-able.
Turn everything around so that we can have multiple list views
with their own adapters.  Switch to using a ViewPager for managing
the different lists.  Smile!

Change-Id: I9c102abb06cf67f313a8696507aa4597b38c7ab9
2012-05-16 19:31:07 -07:00
Dianne Hackborn
14d5714a82 Implement issue #6477793: Add "restore" button to manage apps
Added!

Change-Id: I1b4ffdd24a1c5878ae3acf3970f9364304eb5250
2012-05-13 15:19:57 -07:00
Amith Yamasani
7a3221bb95 Use Spinner instead of Tabs, so that a 4th entry doesn't disappear off the screen.
This is for the 3 to 4 lists that you can switch between in the Settings->Apps
screen.

Bug: 6375122

Change-Id: I8a4e46b8aa3e06bc79edb5f65400462060fe5a29
2012-05-10 15:18:25 -07:00
Amith Yamasani
48c72676b3 Merge "Apps tabs align to title on 2-pane settings." into jb-dev 2012-05-09 13:30:48 -07:00
Amith Yamasani
f0b05de3e0 Apps tabs align to title on 2-pane settings.
Pad the lists in Apps screen.
Pad the color bar to align with the list.

Bug: 6449489

Change-Id: I28c39e2aae04a1fe36c6b7dc447ae19da575edaf
2012-05-09 12:05:17 -07:00
Kenny Root
db55841581 Merge "Allow movement of forward-locked apps to SD" into jb-dev 2012-05-08 16:56:00 -07:00
Kenny Root
3c24cfed8d Allow movement of forward-locked apps to SD
Forward-locked apps are now in ASEC containers which can exist on both
SD card and internal storage. Merry Christmas.

Change-Id: If793cf76858395bfc67cd18ab18f488a83757d5f
2012-05-08 16:16:04 -07:00
Amith Yamasani
bfb6a555aa Appease the monkey gods.
Bug: 6443925

Change-Id: Ia36a154d63763d7a3f826a80a5d1ae678b94208e
2012-05-07 11:34:33 -07:00
Amith Yamasani
9593b743cb Merge "Fix NPE in ManageApps when switching orientation." into jb-dev 2012-05-01 16:15:25 -07:00
Amith Yamasani
3b7dbcecf7 Fix NPE in ManageApps when switching orientation.
Bug: 6394351
Change-Id: Ia66ab18195325b024223cdbce19756150e1d6c8c
2012-05-01 14:56:13 -07:00
Gilles Debunne
ebf44b1b89 Fixed inconsistent gray background in Running app detail
This is a cherry pick of https://android-review.googlesource.com/#/c/35200/

Checked with UI that this backgroud color was not wanted.

Change-Id: I10cd6757ed17fd3cf34f04e5d14e6f210f78ab2c
2012-04-30 12:47:32 -07:00
Amith Yamasani
02c22131e9 Make Manage Apps remember which tab was shown.
This fixes the forgetfulness on orientation change. The code was
already in, but there was a typo in the key string that saved the tab.

Bug: 6000318
Change-Id: If29f42b83aa0ec9f05061b8690e0bdbe8c4a2812
2012-04-26 16:27:43 -07:00
Michael Jurka
bd4bac327b Merge "New API to allow third-party apps to bind widgets" 2012-04-24 19:06:17 -07:00
Michael Jurka
c9029d99a3 New API to allow third-party apps to bind widgets
Change-Id: Ieec9f247fdbfc02c2ad8f5bb7f6b9efe0669af84
2012-04-24 18:52:53 -07:00
Amith Yamasani
8fda756e69 Safeguard from monkeys.
Bug: 6315950
Change-Id: I680b3f0a2cee565a39d58e95a8abe5f62cc7b466
2012-04-24 15:09:10 -07:00
Amith Yamasani
3fd8051a89 Don't let monkeys launch storage management activities.
Guard against monkeys in two places where intents to other activities are
launched.

Bug: 5415988
Change-Id: Ia3c5514c02423f7b249f655296bb02e279789dfd
2012-04-23 13:46:10 -07:00
Jeff Sharkey
c1da7b105a Merge "Use statfs() in IMediaContainerService." 2012-04-23 10:08:06 -07:00
Daniel Sandler
4a824be44c Add notification shutoff switch to app details page.
Requires change Ieccac574.

Bug: 5547401
Change-Id: I9856658cc638723414a5c2c3c6807241c3ce6166
2012-04-23 04:53:14 -07:00
Jeff Sharkey
44dda2d7f5 Use statfs() in IMediaContainerService.
Since Settings runs in system UID, it needs to export statfs()
operations to IMediaContainerService.

Bug: 6346248
Change-Id: I5801948211f0e55040da4850e3dd55b93f80798f
2012-04-22 18:58:34 -07:00
Eddie Ringle
70e4a652f8 Remove title bar background drawable from running app detail view
The use of this drawable made the view look out of place on the new Holo theme,
so removing it makes things look a bit more consistent.

Change-Id: Id12ad9c7d13b7a9813f656b0a3e4ac51fcc988cd
Signed-off-by: Eddie Ringle <eddie.ringle@gmail.com>
2012-04-12 18:24:52 -04:00
Dianne Hackborn
9244df4c64 Add debug app / wait for debugger dev options.
Re-organize dev options a bit.

Change-Id: I291b177c87cb8fb4bd8316d05aa6eadfaaf5f0d2
2012-02-14 13:46:27 -08:00
Amith Yamasani
b71efad62e Potential fix for NPE in Running services.
Bug: 5698270

Loop was removing items from the list being iterated.

Change-Id: I39e98c554b2fe6024381afbe79b737b812e78f08
2011-12-02 10:15:27 -08:00
Amith Yamasani
af9252849f Add compatibility aliases for shortcuts added to home screen in gingerbread.
Bug: 5016573
Change-Id: I1898b2f51216354829acca11e73186465f25ec32
2011-11-14 11:51:36 -08:00
Amith Yamasani
39dd54bee0 Potential fix for monkey crash.
The tab was being changed by a "keypress" after the fragment was
destroyed. Disable the widget until a resume.

Bug: 5157399
Change-Id: Ic1515255052eaea01f71c133d8570f25d65351b2
2011-11-08 15:22:09 -08:00
Peter Ng
8e26e6a216 Settings applications processes viewer color updates
Change-Id: I233bed85c331aa909aebcd3358f7b985d9eaa473
2011-10-20 14:04:53 -07:00
Dianne Hackborn
5c2b48d4d5 Fix issue #5320747: Disabling an app that is an active device administrator...
...can lead to an unsecure device

Now you can't disable device admins.

Or clear their data.

Or force stop them.

Or uninstall them (though the package manager also prevents uninstalling, might
as well disable this button along with everything else).

Change-Id: I69eefc2342e6f932908e9f5b87d3a601752810a4
2011-09-16 13:36:20 -07:00
Jeff Sharkey
a3fb4572dd Merge "Larger touch targets, snap to persisted value." 2011-09-09 11:27:24 -07:00
Jeff Sharkey
5d70679c02 Larger touch targets, snap to persisted value.
Extend ListView content to screen edges, and use InsetBoundsDrawable
to draw separator and divider with expected padding.  Sweep touch
targets are now much larger.

Snap sweep to persisted value, and fix NFE when parsing label value.

Bug: 5274249
Bug: 5262865
Bug: 5242857
Change-Id: Ifa0f3e622767d5b4dc85a73d6340207e6038a429
2011-09-08 19:02:31 -07:00
Dianne Hackborn
4bed01d872 Fix an issue in how running services are shown.
If a process had started services, but another process was
using it for more important reasons, it would still be shown
as just with running services.  Now it will be bundled into
the other process that has a dependency on this.

This fixes an issue where something like a live wallpaper
that say sits forever with a connection to market's licensing
service would not show up to the user as using far more memory
than it should because it is keeping market running (if market
also leaves one of its services running, which it tends to do).

Change-Id: I0fd953b7221f7a3b35400007bb9e8437f09d066e
2011-09-07 18:47:36 -07:00
Kenny Root
762eaa77e3 Intent.getAction() can return null
Make sure we don't rely on action being non-null when it could be. This
fixes some paths into this Settings screen.

Bug: 5246883
Change-Id: I13e247ff95f389a45f5031a559d5ca4914082af3
2011-09-01 09:39:33 -07:00
Dianne Hackborn
c883ee5eaa Small improvements for issue #5225666
Sort disabled apps to the bottom of the list to make them easier to
find together.

Also change the order of the tabs because with the new layout anything
after the third tab is buried so put all apps at the end so the running
tab is more visible.

Change-Id: Id022fdbf366505cf0da3fb9a6270c3f2e2704d51
2011-08-29 12:31:14 -07:00
Gilles Debunne
81aa9508d8 Merge "Bug 5078738: some options moved to overflow menu" 2011-08-22 17:39:07 -07:00
Gilles Debunne
348b62e6e9 Bug 5078738: some options moved to overflow menu
Change-Id: I4ea41dfcd2b0d05de870fb8af5a7614970538491
2011-08-19 16:20:57 -07:00
Jeff Sharkey
b654cbb896 More TabWidget and padding tweaks to match spec.
Also fix NPE in UserDictionarySettings.

Bug: 5184822
Change-Id: I082981c3bcf9b1e6575dcf9f42495a17f0ec8672
2011-08-18 15:30:17 -07:00
Dianne Hackborn
430a3d3376 Update to work with the activity manager taking over OOM settings.
The values it needs are no longer in properties.

Also fix a few problems: bug with apps being left in the services
list, sorting of internal storage.

Change-Id: Ife9706e004931269c36a7bc37b9dbb016064c2e4
2011-08-07 16:29:05 -07:00
Dianne Hackborn
2826bc4ca5 Use new more efficient API for retrieving pss.
Change-Id: Ibcbcc397c2a7c19acd2de640528392df9bb780bb
2011-08-05 17:51:48 -07:00
Dianne Hackborn
f0b63c2c3e Fix issue #4999758: Disabling a system app should require...
...a scary sounding confirmation

Change-Id: I88b14a95b804f14d25a9efcb04b282d60f9719c3
2011-07-18 16:20:47 -07:00
Dianne Hackborn
6c21377ff7 am f70f60c4: am 7d19d795: am b41b85dc: am c74500f4: Merge "Fix NPE due to missing ProcessItem.mPackageInfo"
* commit 'f70f60c4dcfa576ea4ca9eda88eb1f258d1b38f1':
  Fix NPE due to missing ProcessItem.mPackageInfo
2011-07-14 10:56:31 -07:00
Dianne Hackborn
f70f60c4dc am 7d19d795: am b41b85dc: am c74500f4: Merge "Fix NPE due to missing ProcessItem.mPackageInfo"
* commit '7d19d795c8d7a5692879523d8179a8a46226bbbc':
  Fix NPE due to missing ProcessItem.mPackageInfo
2011-07-14 09:18:01 -07:00
Johannes Carlsson
8258dc23d3 Fix NPE due to missing ProcessItem.mPackageInfo
The reason was that a item was removed from the SparseArray while
iterating it causing one ProcessItem to be skipped in the loop which
makes sure that mPackageInfo is not null. This happens when all
processes for one uid is stopped and a new process is created.
This problem was found by running monkey.

Change-Id: I5e9a76e8007819d5e6d9ba15af0c2362da193526
2011-07-01 07:56:27 +02:00
Dianne Hackborn
bd9ddab4f4 Fix up storage UI for old USB storage.
- In the storage overview, if storage is not emulated then we have a
new first section showing internal storage.
- In manage applications, we know show storage use on the SD card
separately from internal storage use.

Change-Id: I7eb993f59fdb5de5f5dcfe4a3bc2b95ae30d754a
2011-06-29 15:41:28 -07:00
Marco Nelissen
3a5079823a Merge "Fix crash in Settings" 2011-06-27 14:58:57 -07:00
Dianne Hackborn
3937b15bbf am c9a477ae: am e3cfa9bc: am 13bac39d: Remove obsolete compat mode UI.
* commit 'c9a477aeaccda8a6fec48ee02ef04d5f7285097a':
  Remove obsolete compat mode UI.
2011-06-27 14:15:10 -07:00
Marco Nelissen
5d4b25c9a7 Fix crash in Settings
Change-Id: Idfc3a7e91caa1d8007db0c4bee856cfe0cbd2905
2011-06-27 14:11:26 -07:00
Dianne Hackborn
13bac39d21 Remove obsolete compat mode UI.
Change-Id: Ie16f70af4b8d6f33db21363a478049659669e0b3
2011-06-23 17:04:06 -07:00
Dianne Hackborn
a12c1e3226 Re-enable user disabling of apps.
Change-Id: I5f3a474926cf2b93e311435f67f36837f5f56caa
2011-06-17 14:50:11 -07:00
Dianne Hackborn
aef746c45f Implement new manage apps UI for compat mode.
Change-Id: Ia8db7f534b7294fbbb34e0acdedab3a96cea59e9
2011-05-26 01:06:11 -07:00
Amith Yamasani
cfd524f07a Visual adjustments for smaller tablets.
Make the Manage Apps tab indicators horizontally scrollable.
Use medium font size for user dictionary.

Bug: 4462313

Change-Id: Iba44e758715c0187ea17ed072794b8596dee0e54
2011-05-24 15:49:34 -07:00
Mike Lockwood
e6c7e45fdb DO NOT MERGE: IUsbManager hasDefaults() and clearDefaults() no longer take UID parameter
Bug: 4061035

Change-Id: Idfec53b1da7b9b981c1c762468a3f69f78fedd7a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-11 19:19:27 -05:00