diff options
author | Chris Wren <cwren@android.com> | 2015-01-16 16:16:43 -0500 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-01-16 16:19:32 -0500 |
commit | d8775100b28fd1c0cc7380226a8b2c7c312e28f7 (patch) | |
tree | 8bce9691a71b1440c98463941a98dc2bc51a9970 /packages/SystemUI/src/com/android/systemui/screenshot | |
parent | dbf22ccd92dc95e7c93c0485be4bcfb5c966578a (diff) | |
download | frameworks_base-d8775100b28fd1c0cc7380226a8b2c7c312e28f7.zip frameworks_base-d8775100b28fd1c0cc7380226a8b2c7c312e28f7.tar.gz frameworks_base-d8775100b28fd1c0cc7380226a8b2c7c312e28f7.tar.bz2 |
Standardize notification IDs in the sysui package.
Use the resource system to assign IDs for notifications,
so that we know there will be no collisions.
Bug: 10671709
Change-Id: I403e89f6ec953f6e2e63520b86e2cd464ebce6b3
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index d9fea47..1b71668 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java @@ -341,7 +341,6 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi class GlobalScreenshot { private static final String TAG = "GlobalScreenshot"; - private static final int SCREENSHOT_NOTIFICATION_ID = 789; private static final int SCREENSHOT_FLASH_TO_PEAK_DURATION = 130; private static final int SCREENSHOT_DROP_IN_DURATION = 430; private static final int SCREENSHOT_DROP_OUT_DELAY = 500; @@ -464,7 +463,7 @@ class GlobalScreenshot { mSaveInBgTask.cancel(false); } mSaveInBgTask = new SaveImageInBackgroundTask(mContext, data, mNotificationManager, - SCREENSHOT_NOTIFICATION_ID).execute(data); + R.id.notification_screenshot).execute(data); } /** @@ -731,6 +730,6 @@ class GlobalScreenshot { new Notification.BigTextStyle(b) .bigText(r.getString(R.string.screenshot_failed_text)) .build(); - nManager.notify(SCREENSHOT_NOTIFICATION_ID, n); + nManager.notify(R.id.notification_screenshot, n); } } |