summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-07-21 13:41:32 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-07-21 13:41:32 -0700
commit20b32f25f0867bebfd138749f7ed45cf898942ef (patch)
tree7a38a0b1f300588170dd16d963fb527ee1045c2e /src/com/android
parent7bc9c1bce3593a01f261a537a5edbb264316aa1c (diff)
downloadpackages_apps_Settings-20b32f25f0867bebfd138749f7ed45cf898942ef.tar.gz
packages_apps_Settings-20b32f25f0867bebfd138749f7ed45cf898942ef.tar.bz2
packages_apps_Settings-20b32f25f0867bebfd138749f7ed45cf898942ef.zip
Fix Notification Access layout for tabletUI support
- setup correct padding for the App list and its item also remove showing FastScroller all the time on App Notification list See bug: #13140648 Settings needs to support the new Quantum Paper theme Change-Id: I11a70906f1372027622d50a81bc7744d48190f8a
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/notification/ManagedServiceSettings.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/settings/notification/ManagedServiceSettings.java b/src/com/android/settings/notification/ManagedServiceSettings.java
index 880ecdec7..7be644ec5 100644
--- a/src/com/android/settings/notification/ManagedServiceSettings.java
+++ b/src/com/android/settings/notification/ManagedServiceSettings.java
@@ -60,7 +60,7 @@ public abstract class ManagedServiceSettings extends ListFragment {
private ContentResolver mCR;
private final HashSet<ComponentName> mEnabledServices = new HashSet<ComponentName>();
- private ServiceListAdapter mList;
+ private ServiceListAdapter mListAdapter;
abstract protected Config getConfig();
@@ -130,7 +130,7 @@ public abstract class ManagedServiceSettings extends ListFragment {
mPM = getActivity().getPackageManager();
mCR = getActivity().getContentResolver();
- mList = new ServiceListAdapter(getActivity());
+ mListAdapter = new ServiceListAdapter(getActivity());
}
@Override
@@ -200,10 +200,10 @@ public abstract class ManagedServiceSettings extends ListFragment {
private void updateList() {
loadEnabledServices();
- getServices(mConfig, mList, mPM);
- mList.sort(new PackageItemInfo.DisplayNameComparator(mPM));
+ getServices(mConfig, mListAdapter, mPM);
+ mListAdapter.sort(new PackageItemInfo.DisplayNameComparator(mPM));
- getListView().setAdapter(mList);
+ getListView().setAdapter(mListAdapter);
}
protected static int getEnabledServicesCount(Config config, Context context) {
@@ -255,7 +255,7 @@ public abstract class ManagedServiceSettings extends ListFragment {
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
- ServiceInfo info = mList.getItem(position);
+ ServiceInfo info = mListAdapter.getItem(position);
final ComponentName cn = new ComponentName(info.packageName, info.name);
if (mEnabledServices.contains(cn)) {
// the simple version: disabling