summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/AllAppsList.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-12-25 15:33:18 +0000
committernebkat <nebkat@teamhacksung.org>2012-12-26 13:37:21 +0000
commit10a574501d4f4426ab5cec0a613b60d1d0baed44 (patch)
tree9f8718ecf66b46193d5eee04a947faf562318a73 /src/com/cyanogenmod/trebuchet/AllAppsList.java
parentb79406c0a85568dbc9150bbdb5339405b924f1fb (diff)
downloadpackages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.zip
packages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.tar.gz
packages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.tar.bz2
Cleanup
Change-Id: Ied69f285305dbc3e1bf62676f23c47d6c6969e0a
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/AllAppsList.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/AllAppsList.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AllAppsList.java b/src/com/cyanogenmod/trebuchet/AllAppsList.java
index cc0e8cf..bab47c9 100644
--- a/src/com/cyanogenmod/trebuchet/AllAppsList.java
+++ b/src/com/cyanogenmod/trebuchet/AllAppsList.java
@@ -135,9 +135,7 @@ class AllAppsList {
// Find enabled activities and add them to the adapter
// Also updates existing activities with new labels/icons
- int count = matches.size();
- for (int i = 0; i < count; i++) {
- final ResolveInfo info = matches.get(i);
+ for (final ResolveInfo info : matches) {
ApplicationInfo applicationInfo = findApplicationInfoLocked(
info.activityInfo.applicationInfo.packageName,
info.activityInfo.name);
@@ -195,9 +193,7 @@ class AllAppsList {
* Returns whether <em>apps</em> contains <em>component</em>.
*/
private static boolean findActivity(ArrayList<ApplicationInfo> apps, ComponentName component) {
- final int N = apps.size();
- for (int i=0; i<N; i++) {
- final ApplicationInfo info = apps.get(i);
+ for (final ApplicationInfo info : apps) {
if (info.componentName.equals(component)) {
return true;
}