|
|
@ -304,16 +304,16 @@ public class FragmentMessages extends FragmentBase {
|
|
|
|
activity.setSwipeListener(new SwipeListener.ISwipeListener() {
|
|
|
|
activity.setSwipeListener(new SwipeListener.ISwipeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onSwipeRight() {
|
|
|
|
public boolean onSwipeRight() {
|
|
|
|
if (previous != null)
|
|
|
|
if (next != null)
|
|
|
|
navigate(previous);
|
|
|
|
navigate(next);
|
|
|
|
return (previous != null);
|
|
|
|
return (next != null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onSwipeLeft() {
|
|
|
|
public boolean onSwipeLeft() {
|
|
|
|
if (next != null)
|
|
|
|
if (previous != null)
|
|
|
|
navigate(next);
|
|
|
|
navigate(previous);
|
|
|
|
return (next != null);
|
|
|
|
return (previous != null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|