summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2018-06-11 11:18:55 +0200
committerRobin Lee <rgl@google.com>2018-06-13 06:11:37 +0000
commita6b5344bd3705d03b71002f3f5926b81c6ae6d70 (patch)
treef842a115cb64e865bcfe810bd9d21aa027ed712c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2125e5c59ec2a5561a52927e42ea81cef0472421 (diff)
Do not treat EXTRA_SMALL_ICON <int> as Parcelable
It isn't one, and I should have read the documentation on it properly before treating it the same as EXTRA_LARGE_ICON (which is indeed a Parcelable). This fixes a chronic outpouring of technically-probably-harmless warning stack traces of the following nature which can be verified by running the framework tests and grepping logcat for this scary-looking string: java.lang.ClassCastException: java.lang.Integer cannot be cast to android.os.Parcelable at android.os.Bundle.getParcelable(Bundle.java:***) at android.app.Notification.fixDuplicateExtra at android.app.Notification.fixDuplicateExtras at android.app.Notification.readFromParcelImpl Duplicate Integer objects are harmless compared to the Bitmap so there is zero sense in recombining the objects after an RPC. We just drop the line which tries to do that. Test: make FrameworksCoreTests -j30 && \ Test: adb install -r ${ANDROID_PRODUCT_OUT}/data/app/*/FrameworksCoreTests.apk && \ Test: adb shell am instrument \ Test: -e class android.app.NotificationTest \ Test: -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: I2c88ab4e9d5322c05e2e7f68df85ed5b2f296f84 Fix: 79404137 (cherry picked from commit 62eea67846e3817e090031257bae7c42a8407548)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions