OSDN Git Service

Gallery2: Fix CollectionIncompatibleType
authorAndreas Gampe <agampe@google.com>
Fri, 2 Mar 2018 01:42:59 +0000 (17:42 -0800)
committerAndreas Gampe <agampe@google.com>
Fri, 2 Mar 2018 01:42:59 +0000 (17:42 -0800)
Fix incorrect indexOf lookup.

Bug: 73288226
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Ifb158d6f4c5f0eb078f9d4fb37c7da03c2c0a4fe

src/com/android/gallery3d/filtershow/filters/FilterGradRepresentation.java

index a3a7e95..928c3ea 100644 (file)
@@ -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() {