|
|
|
@ -102,6 +102,7 @@ import android.view.ScrollCaptureCallback;
|
|
|
|
|
import android.view.ScrollCaptureSession;
|
|
|
|
|
import android.view.SubMenu;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.view.ViewConfiguration;
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
|
import android.view.animation.Animation;
|
|
|
|
|
import android.view.animation.AnimationUtils;
|
|
|
|
@ -402,7 +403,6 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
|
|
|
|
|
|
private static final int MAX_MORE = 100; // messages
|
|
|
|
|
private static final int MAX_SEND_RAW = 50; // messages
|
|
|
|
|
private static final int SWIPE_DISABLE_SELECT_DURATION = 500; // milliseconds
|
|
|
|
|
private static final float LUMINANCE_THRESHOLD = 0.7f;
|
|
|
|
|
private static final int ITEM_CACHE_SIZE = 10; // Default: 2 items
|
|
|
|
|
|
|
|
|
@ -2918,7 +2918,7 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
|
if (isCurrentlyActive)
|
|
|
|
|
selectionPredicate.setEnabled(false);
|
|
|
|
|
else
|
|
|
|
|
getMainHandler().postDelayed(enableSelection, SWIPE_DISABLE_SELECT_DURATION);
|
|
|
|
|
getMainHandler().postDelayed(enableSelection, ViewConfiguration.getLongPressTimeout() + 100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Context context = getContext();
|
|
|
|
|