Commit Graph

37 Commits

Author SHA1 Message Date
Jeff Brown
347c9a0544 Refresh apps when they become (un)available.
This fixes a bug in the current code that causes apps to be removed
from the list when they become unavailable.

Change-Id: Ic0b4c0fa34662ce3c458117b6807742448ec6575
2010-03-29 17:51:23 -07:00
Suchi Amalapurapu
de03ac27b7 Disable uninstall button when move is in progress.
Handle onActivityResult in ManageApplications when a package has been
uninstalled.

Change-Id: I4c4a8a54f9743f89949f47e21c1e143ac08ca2c3
2010-03-23 15:43:35 -07:00
Suchi Amalapurapu
d2b8efa494 Rename flag in ApplicationInfo
Change-Id: I368aabf364398bba574d8f5508d1d360f8c2dd6d
2010-03-10 09:56:33 -08:00
Suchi Amalapurapu
f4c4b59f13 Move application icon to left in InstalledAppDetails.
Fix text overlapping icon issue.
Add new icons for filter options
2010-03-04 12:30:11 -08:00
Suchi Amalapurapu
07c61c6dbb Rename broadcast for resources on sdcard 2010-02-08 13:56:16 -08:00
Suchi Amalapurapu
a833d10e3e Add new broadcast to pick up apps from sdcard 2010-02-03 11:21:49 -08:00
Suchi Amalapurapu
747ea55fce Convert menu options to tabs
Add new tab for apps on sd
2010-01-28 13:53:35 -08:00
Suchi Amalapurapu
38b8970706 Change filter options from being menu items to tabbed views.
Remove unused strings.
2010-01-12 16:41:45 -08:00
Amith Yamasani
f6b384045d Fix for NPE in #2248683
Also fix a problem in type-to-filter. It was looking for substring match
instead of searching on word boundaries. It will now search by word
boundaries (separated by space).
2009-11-11 19:03:09 -08:00
Suchi Amalapurapu
78c69095ea Rename empty view so that the standard list view implementation
displays empty list message when list goes empty. Ideally the list is
not empty for running processes and All filter options. so the
message is just set to third party apps
Remove the empty list view logic from code base
2009-09-28 11:28:58 -07:00
Suchi Amalapurapu
6cf44dbe90 Set selection in single choice list.
Reorder the menu entries to use the menu options as indices into
the choice box directly
2009-09-23 16:57:55 -07:00
Suchi Amalapurapu
fe4a2bc43f Change default filter to third party when launched via settings and all apps when launched via
low storage. Update string name.
fix padding for Force Stop button
Change message when clearing application data.
2009-09-20 15:11:44 -07:00
Suchi Amalapurapu
355b32faa9 Fix issues with updating list when applications get installed while ManageApps is paused or stopped.
When ManageApps gets started, the list of installed apps is retrieved from PackageManager and
compared against the old list to figure out newly installed apps(since the app has been stopped) and
also to weedout stale entries of packages which might have been deleted.
Since the application objects themselves might have changed the list is usually refreshed with new objects.
Deleted applications are taken care of right away by just removing from the List adapter.
For newly added apps however, the size and label/resource info has to be loaded before being inserted in to
the list since the list is already sorted. So just remove these entries from the list for now and let
ADD_PKG message handle adding the new elements.
Make AppInfo a nested class so that it doesn't hold a reference to its enclosing class and
 we have too many such entries one for each package.
2009-09-16 17:12:08 -07:00
Suchi Amalapurapu
c0b23d3f0b Add type to filter option to list view
Make ListAdapter implement Filterable. Add new implementation for Filter
to search based on prefixes.
When creating the list include the filter option to create actual list entries.
Since Filter.performFiltering is done on a work thread, introduce a new lock
and a HashMap of packages matching a prefix which is then used to create a filtered list of applications.
Also separte out modifying mAppLocalList which is the basis for list and
the dependent mFilterMap used by Filter.performFiltering method to Locked
methods for clarity. Note that mAppLocalList is manipulated on main UI thread everywhere but mFilterMap is not.
2009-08-21 11:47:57 -07:00
Suchi Amalapurapu
2c9b21f048 am d2136f7e: Create a shared preference setting and use it before loading/unloading cache and disable cache if file operations failed in the last launch. A simple if check when reading buffer size from file
Merge commit 'd2136f7e5da6d36a685f5bed2727f0abdafb70bf' into eclair

* commit 'd2136f7e5da6d36a685f5bed2727f0abdafb70bf':
  Create a shared preference setting and use it before loading/unloading cache
2009-08-18 19:51:39 -07:00
Suchi Amalapurapu
d2136f7e5d Create a shared preference setting and use it before loading/unloading cache
and disable cache if file operations failed in the last launch.
A simple if check when reading buffer size from file
2009-08-18 19:32:06 -07:00
Android (Google) Code Review
a4fe66fdc7 am 79748b42: Merge change 9000 into donut
Merge commit '79748b42e3e891c0d1541753c133fa83638146ce'

* commit '79748b42e3e891c0d1541753c133fa83638146ce':
  Fix duplicate entries being added when application is in active use
2009-07-30 09:56:29 -07:00
Suchi Amalapurapu
489eaccb98 Fix duplicate entries being added when application is in active use 2009-07-29 11:38:17 -07:00
Suchi Amalapurapu
eaf6cb159e am c0932631: Remove debug statement
Merge commit 'c09326318334904f65d63c485c6fa1a7cb146bd8'

* commit 'c09326318334904f65d63c485c6fa1a7cb146bd8':
  Remove debug statement
2009-07-28 11:29:09 -07:00
Suchi Amalapurapu
c093263183 Remove debug statement 2009-07-28 10:28:23 -07:00
Suchi Amalapurapu
8a45c87d41 resolved conflicts for merge of e0b5f33c to master 2009-07-21 17:17:33 -07:00
Suchi Amalapurapu
b285593caf Reorganize message posting when updating sizes and resources. Rather than posting
a message for each package, post a message for  a set of packages(8) so that we don't
end up posting too many messages and making the UI non-responsive by keeping
the Handler too busy. We just pass the loaded info as a map in the message object.
Changes to back ground threads that compute sizes and load resources.

Add a new AppInfoCache class with some additional methods to load and persist cache.
As of now this just uses a raw file to cache application sizes and labels. We
could have gotten away with a simple map object but for clarity and future enhancements
just reorganized everything into a class. Load the cache in onCreate and persist
in onDestroy rather than start and stop. Using the cache we get < 1sec load times.
Peristing the cache has negligible performance effects. Remove multiple references to
cache and just use one object all over the code.

Rework AppInfo class and remove some confusing initializations. Also move the formatting
sizes part to back ground threads rather than in the constructor of AppInfo projects.
Formatting the sizes takes a lot of time and there is no point in blocking the UI thread
with this operation.

Changes to Adapter to use the newly created cache system. Define new comparator
for comparing application labels when sorting lists rather than using the one defined in
ApplicationInfo class which was loading the labels again in compare method. This was redundant
and since we cache these labels anyway, just use the cached labels instead. Rename and add
new methods for some of the new handler messages that send updates to a list of objects now.
Changes to removeFromList method and just remove entry from lists and cache linearly.

Also fix a bug in the adapter class where we reinit the list everytime the activity gets
restarted. Add a check here to invoke notifyDataSetChanged if underlying data changes.

Add some debug statements to record time.
2009-07-20 11:48:17 -07:00
Michael Chan
8762093e00 Findbug fixes in Settings app
modified:   src/com/android/settings/ApnPreference.java
	modified:   src/com/android/settings/ApnSettings.java
	modified:   src/com/android/settings/BandMode.java
	modified:   src/com/android/settings/BatteryInfo.java
	modified:   src/com/android/settings/LanguageSettings.java
	modified:   src/com/android/settings/ManageApplications.java
	modified:   src/com/android/settings/RadioInfo.java
	modified:   src/com/android/settings/SdCardSettings.java
	modified:   src/com/android/settings/UsageStats.java
	modified:   src/com/android/settings/ZoneList.java
	modified:   src/com/android/settings/bluetooth/LocalBluetoothDevice.java
	modified:   src/com/android/settings/deviceinfo/Status.java
	modified:   src/com/android/settings/quicklaunch/QuickLaunchSettings.java
	modified:   src/com/android/settings/wifi/AccessPointDialog.java
	modified:   src/com/android/settings/wifi/AccessPointPreference.java
	modified:   src/com/android/settings/wifi/WifiLayer.java
	modified:   src/com/android/settings/wifi/WifiSettings.java
2009-05-14 17:47:02 -07:00
Suchi Amalapurapu
475b58296b Automated import from //branches/master/...@142035,142035 2009-03-24 21:25:01 -07:00
Suchi Amalapurapu
585ee96b91 Automated import from //branches/donutburger/...@142034,142034 2009-03-24 21:20:18 -07:00
Suchi Amalapurapu
ff271ce1b7 Automated import from //branches/master/...@140879,140879 2009-03-24 18:48:06 -07:00
Suchi Amalapurapu
b22cc18118 Automated import from //branches/donutburger/...@140876,140876 2009-03-24 18:47:42 -07:00
The Android Open Source Project
e6dd1fa185 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:48 -07:00
The Android Open Source Project
72ed6feab2 auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:25 -07:00
The Android Open Source Project
afc4ab2ffb auto import from //depot/cupcake/@135843 2009-03-03 19:32:34 -08:00
The Android Open Source Project
4e14e5ccbf auto import from //depot/cupcake/@135843 2009-03-03 18:28:52 -08:00
The Android Open Source Project
a578a6c4ad auto import from //depot/cupcake/@132589 2009-03-03 14:04:35 -08:00
The Android Open Source Project
8a156091ef auto import from //depot/cupcake/@137055 2009-03-02 22:54:43 -08:00
The Android Open Source Project
b9f5851434 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:53 -08:00
The Android Open Source Project
1feaa85791 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:05 -08:00
The Android Open Source Project
abc48f80d8 Code drop from //branches/cupcake/...@124589 2008-12-17 18:06:01 -08:00
The Android Open Source Project
de2d9f5f10 Initial Contribution 2008-10-21 07:00:00 -07:00