diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 821f3b75..73b19345 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -3,6 +3,7 @@ This part lists all PUBLIC individuals having contributed content to the code. * M M Arif (mmarif) * 6543 + * opyale * Unpublished # Translators diff --git a/app/src/main/java/org/mian/gitnex/helpers/ColorInverter.java b/app/src/main/java/org/mian/gitnex/helpers/ColorInverter.java index 4eea5dac..e1f16d79 100644 --- a/app/src/main/java/org/mian/gitnex/helpers/ColorInverter.java +++ b/app/src/main/java/org/mian/gitnex/helpers/ColorInverter.java @@ -33,7 +33,22 @@ public class ColorInverter { if(imageView != null) { Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); - return getContrastColor(bitmap.getPixel(bitmap.getWidth() / 2, bitmap.getHeight() / 2)); + + int colorSum = 0; + int divisionValue = 0; + + for(int height=0; height