|
|
@ -2066,7 +2066,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
// Right swipe
|
|
|
|
// Right swipe
|
|
|
|
d.setAlpha(Math.round(255 * Math.min(dX / (2 * margin + size), 1.0f)));
|
|
|
|
d.setAlpha(Math.round(255 * Math.min(dX / (2 * margin + size), 1.0f)));
|
|
|
|
if (swipes.right_color == null) {
|
|
|
|
if (swipes.right_color == null) {
|
|
|
|
Integer color = EntityFolder.getDefaultColor(swipes.right_type);
|
|
|
|
Integer color = EntityFolder.getDefaultColor(swipes.swipe_right, swipes.right_type);
|
|
|
|
if (color != null)
|
|
|
|
if (color != null)
|
|
|
|
d.setTint(color);
|
|
|
|
d.setTint(color);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
@ -2082,7 +2082,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
// Left swipe
|
|
|
|
// Left swipe
|
|
|
|
d.setAlpha(Math.round(255 * Math.min(-dX / (2 * margin + size), 1.0f)));
|
|
|
|
d.setAlpha(Math.round(255 * Math.min(-dX / (2 * margin + size), 1.0f)));
|
|
|
|
if (swipes.left_color == null) {
|
|
|
|
if (swipes.left_color == null) {
|
|
|
|
Integer color = EntityFolder.getDefaultColor(swipes.left_type);
|
|
|
|
Integer color = EntityFolder.getDefaultColor(swipes.swipe_left, swipes.left_type);
|
|
|
|
if (color != null)
|
|
|
|
if (color != null)
|
|
|
|
d.setTint(color);
|
|
|
|
d.setTint(color);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|