diff options
author | Andreas Gampe <agampe@google.com> | 2018-03-01 17:42:59 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2018-03-01 17:42:59 -0800 |
commit | e3ec91dce0a7efe924cd6e8534e306f1dd7e3b56 (patch) | |
tree | 04a9664f0722095b8a93a008d191fc9aae806d45 | |
parent | 6f8c54d224d3d74a054966cf2129be08aa0313e6 (diff) | |
download | android_packages_apps_Gallery2-e3ec91dce0a7efe924cd6e8534e306f1dd7e3b56.tar.gz android_packages_apps_Gallery2-e3ec91dce0a7efe924cd6e8534e306f1dd7e3b56.tar.bz2 android_packages_apps_Gallery2-e3ec91dce0a7efe924cd6e8534e306f1dd7e3b56.zip |
Gallery2: Fix CollectionIncompatibleType
Fix incorrect indexOf lookup.
Bug: 73288226
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Ifb158d6f4c5f0eb078f9d4fb37c7da03c2c0a4fe
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java index a3a7e9555..928c3eae9 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java @@ -104,7 +104,7 @@ public class FilterGradRepresentation extends FilterRepresentation count++; } } - return "c=" + mBands.indexOf(mBands) + "[" + mBands.size() + "]" + count; + return "c=" + mBands.indexOf(mCurrentBand) + "[" + mBands.size() + "]" + count; } private void creatExample() { |