Check if swipe left/right folder exists

pull/160/head
M66B 5 years ago
parent 3ccdc904c4
commit a7a2322913

@ -1255,10 +1255,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
int flags = 0;
if (swipes.swipe_left != null &&
(swipes.swipe_left < 0 || !swipes.swipe_left.equals(message.folder)))
(swipes.swipe_left < 0 ||
(swipes.left_type != null && !swipes.swipe_left.equals(message.folder))))
flags |= ItemTouchHelper.LEFT;
if (swipes.swipe_right != null &&
(swipes.swipe_right < 0 || !swipes.swipe_right.equals(message.folder)))
(swipes.swipe_right < 0 ||
(swipes.right_type != null && !swipes.swipe_right.equals(message.folder))))
flags |= ItemTouchHelper.RIGHT;
return makeMovementFlags(0, flags);

Loading…
Cancel
Save