diff options
author | Alexandra Gherghina <alexgherghina@google.com> | 2015-01-09 10:41:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-09 10:41:42 +0000 |
commit | 08309d207252d19921a7a63c2532026ee7d3eda1 (patch) | |
tree | 652766dbd62dba180b3a5d2ad22d782263663e3f /src/com | |
parent | 4e4860bbcbfafd2b59f1ecec9c9b895ca7943cb0 (diff) | |
parent | fa7dacb157d4ecc01cf96f622515f40e2c402673 (diff) | |
download | packages_apps_Settings-08309d207252d19921a7a63c2532026ee7d3eda1.zip packages_apps_Settings-08309d207252d19921a7a63c2532026ee7d3eda1.tar.gz packages_apps_Settings-08309d207252d19921a7a63c2532026ee7d3eda1.tar.bz2 |
Merge "Fix width of app notifications detail screen"
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/notification/NotificationAppList.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/notification/NotificationAppList.java b/src/com/android/settings/notification/NotificationAppList.java index cd1474f..311ec59 100644 --- a/src/com/android/settings/notification/NotificationAppList.java +++ b/src/com/android/settings/notification/NotificationAppList.java @@ -18,6 +18,7 @@ package com.android.settings.notification; import static com.android.settings.notification.AppNotificationSettings.EXTRA_HAS_SETTINGS_INTENT; import static com.android.settings.notification.AppNotificationSettings.EXTRA_SETTINGS_INTENT; +import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import android.animation.LayoutTransition; import android.app.INotificationManager; @@ -49,6 +50,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; +import android.view.ViewGroup.LayoutParams; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.ArrayAdapter; @@ -127,6 +129,8 @@ public class NotificationAppList extends PinnedHeaderListFragment R.layout.spinner_view, null); mSpinner.setAdapter(mProfileSpinnerAdapter); mSpinner.setOnItemSelectedListener(this); + // Set layout parameters, otherwise we get the default ones + mSpinner.setLayoutParams(new LayoutParams(WRAP_CONTENT, WRAP_CONTENT)); setPinnedHeaderView(mSpinner); } } |