diff options
author | Daniel Sandler <dsandler@android.com> | 2012-04-19 01:08:15 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-04-19 01:08:15 -0400 |
commit | bc5559f1922d72715940f754faffc82da4100eab (patch) | |
tree | efe383a3517bd93bb63a5f0a2a90262a4229478c /tests/StatusBar | |
parent | 26fbf27ad1e9f9c26a82097fe306f07ec36e8410 (diff) | |
download | frameworks_base-bc5559f1922d72715940f754faffc82da4100eab.zip frameworks_base-bc5559f1922d72715940f754faffc82da4100eab.tar.gz frameworks_base-bc5559f1922d72715940f754faffc82da4100eab.tar.bz2 |
Expand too-small notifications to fill 64dp.
Also fix NotificationTestList so it runs again.
Change-Id: I2fb28cd9cfad25a7a1b17ccef9ccd741c3aa99b0
Diffstat (limited to 'tests/StatusBar')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java index 5eac1f2..a90af15 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java @@ -24,6 +24,7 @@ import android.content.ContentResolver; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; +import android.os.Bundle; import android.os.Environment; import android.os.Vibrator; import android.os.Handler; @@ -44,10 +45,10 @@ public class NotificationTestList extends TestActivity private final static String TAG = "NotificationTestList"; NotificationManager mNM; - Vibrator mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); + Vibrator mVibrator; Handler mHandler = new Handler(); - long mActivityCreateTime = System.currentTimeMillis(); + long mActivityCreateTime; long mChronometerBase = 0; boolean mProgressDone = true; @@ -67,6 +68,13 @@ public class NotificationTestList extends TestActivity final int kUnnumberedIconResID = R.drawable.notificationx; @Override + public void onCreate(Bundle icicle) { + super.onCreate(icicle); + mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); + mActivityCreateTime = System.currentTimeMillis(); + } + + @Override protected String tag() { return TAG; } |