summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-08-18 11:59:19 -0700
committerJeff Sharkey <jsharkey@android.com>2011-08-18 15:30:17 -0700
commitb654cbb896a6e6db9ecec164476b0ac4a3e72774 (patch)
tree943ad7937bd4e6a391fcdc7f7c86299fecf9c6f1 /src/com/android/settings/applications
parenteee01c451051234e99ea612079ec533c8f9ad9c6 (diff)
downloadpackages_apps_settings-b654cbb896a6e6db9ecec164476b0ac4a3e72774.zip
packages_apps_settings-b654cbb896a6e6db9ecec164476b0ac4a3e72774.tar.gz
packages_apps_settings-b654cbb896a6e6db9ecec164476b0ac4a3e72774.tar.bz2
More TabWidget and padding tweaks to match spec.
Also fix NPE in UserDictionarySettings. Bug: 5184822 Change-Id: I082981c3bcf9b1e6575dcf9f42495a17f0ec8672
Diffstat (limited to 'src/com/android/settings/applications')
-rw-r--r--src/com/android/settings/applications/ManageApplications.java22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java
index 68c942d..4f17d81 100644
--- a/src/com/android/settings/applications/ManageApplications.java
+++ b/src/com/android/settings/applications/ManageApplications.java
@@ -16,11 +16,7 @@
package com.android.settings.applications;
-import com.android.internal.content.PackageHelper;
-import com.android.settings.R;
-import com.android.settings.Settings.RunningServicesActivity;
-import com.android.settings.Settings.StorageUseActivity;
-import com.android.settings.applications.ApplicationsState.AppEntry;
+import static com.android.settings.Utils.prepareCustomPreferencesList;
import android.app.Activity;
import android.app.Fragment;
@@ -58,6 +54,12 @@ import android.widget.ListView;
import android.widget.TabHost;
import android.widget.TextView;
+import com.android.internal.content.PackageHelper;
+import com.android.settings.R;
+import com.android.settings.Settings.RunningServicesActivity;
+import com.android.settings.Settings.StorageUseActivity;
+import com.android.settings.applications.ApplicationsState.AppEntry;
+
import java.util.ArrayList;
import java.util.Comparator;
@@ -618,9 +620,8 @@ public class ManageApplications extends Fragment implements
mCreatedRunning = mResumedRunning = false;
mCurView = VIEW_NOTHING;
-
- View tabRoot = mInflater.inflate(R.layout.manage_apps_tab_content, null);
- mTabHost = (TabHost)tabRoot.findViewById(com.android.internal.R.id.tabhost);
+
+ mTabHost = (TabHost) mInflater.inflate(R.layout.manage_apps_tab_content, container, false);
mTabHost.setup();
final TabHost tabHost = mTabHost;
tabHost.addTab(tabHost.newTabSpec(TAB_DOWNLOADED)
@@ -644,7 +645,10 @@ public class ManageApplications extends Fragment implements
tabHost.setCurrentTabByTag(mDefaultTab);
tabHost.setOnTabChangedListener(this);
- return tabRoot;
+ // adjust padding around tabwidget as needed
+ prepareCustomPreferencesList(container, mTabHost, mListView);
+
+ return mTabHost;
}
@Override