From fe4a2bc43f45b14db62c67d7c2531a3d7f1b8590 Mon Sep 17 00:00:00 2001 From: Suchi Amalapurapu Date: Sun, 20 Sep 2009 14:25:46 -0700 Subject: [PATCH] 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. --- res/layout/installed_app_details.xml | 3 ++- res/values/strings.xml | 4 ++-- src/com/android/settings/ManageApplications.java | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/res/layout/installed_app_details.xml b/res/layout/installed_app_details.xml index 13d3b1006d5..2810604fffc 100644 --- a/res/layout/installed_app_details.xml +++ b/res/layout/installed_app_details.xml @@ -304,7 +304,7 @@ android:layout_centerHorizontal="true" android:layout_width="150dip" android:text="@string/clear_activities" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" /> @@ -320,6 +320,7 @@ android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" + android:paddingTop="6dip" android:layout_width="150dip" android:text="@string/force_stop" android:layout_height="wrap_content" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 6cdbc33b336..c9ffa5ecb35 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1371,7 +1371,7 @@ All - Third-party + Downloaded Running @@ -1381,7 +1381,7 @@ Delete - All information you\'ve saved in this application will be deleted permanently. + All of this application\'s data will be deleted permanently. This includes all files, settings, accounts, databases and so on. OK diff --git a/src/com/android/settings/ManageApplications.java b/src/com/android/settings/ManageApplications.java index 34a1e431831..3d036661279 100644 --- a/src/com/android/settings/ManageApplications.java +++ b/src/com/android/settings/ManageApplications.java @@ -142,11 +142,11 @@ public class ManageApplications extends ListActivity implements public static final int FILTER_APPS_RUNNING = MENU_OPTIONS_BASE + 4; public static final int FILTER_OPTIONS = MENU_OPTIONS_BASE + 5; // Alert Dialog presented to user to find out the filter option - AlertDialog mAlertDlg; + private AlertDialog mAlertDlg; // sort order private int mSortOrder = SORT_ORDER_ALPHA; // Filter value - int mFilterApps = FILTER_APPS_ALL; + private int mFilterApps = FILTER_APPS_THIRD_PARTY; // Custom Adapter used for managing items in the list private AppInfoAdapter mAppInfoAdapter; @@ -1577,6 +1577,7 @@ public class ManageApplications extends ListActivity implements String action = intent.getAction(); if (action.equals(Intent.ACTION_MANAGE_PACKAGE_STORAGE)) { mSortOrder = SORT_ORDER_SIZE; + mFilterApps = FILTER_APPS_ALL; mSizesFirst = true; } mPm = getPackageManager();