android/source/src/java/org/libreoffice/ColorPickerAdapter.java |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 621db9bfacca199ea1db1abf1a4b57f72fb8c8fa
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri May 6 22:15:19 2022 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Sun May 8 08:20:22 2022 +0200

    android: Move assignment to existing loop
    
    There is already a loop just before this one,
    so just move that assignment there as well.
    
    Change-Id: Ie93a0275c0940b7932973264352bad64d0489b03
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133984
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/android/source/src/java/org/libreoffice/ColorPickerAdapter.java 
b/android/source/src/java/org/libreoffice/ColorPickerAdapter.java
index d81d43c77fbc..9b7e8173975c 100644
--- a/android/source/src/java/org/libreoffice/ColorPickerAdapter.java
+++ b/android/source/src/java/org/libreoffice/ColorPickerAdapter.java
@@ -111,9 +111,7 @@ public class ColorPickerAdapter extends 
RecyclerView.Adapter<ColorPickerAdapter.
                     colorPalette[i][k] = (Color.rgb(red_tint, green_tint, 
blue_tint));
                 }
             }
-        }
-        for (int i = 0; i < 11; i++){
-            this.colorPalette[i][7] = Color.WHITE; // last one is always white
+            colorPalette[i][7] = Color.WHITE; // last one is always white
         }
         colorPaletteAdapter.setColorPalette(colorPalette);
     }

Reply via email to