diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-03-18 14:00:44 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-23 09:19:02 +0100 |
commit | 907583d10ccc67f2b32ad1702218c46df5c84b79 (patch) | |
tree | 3f2b54d8d4722cb513693cb60cc84f48ec9e2547 /android | |
parent | 86548b6bfe0e4b095f1fcb7cea6c3aa4888535a1 (diff) |
android: change cursor blink time to a constant static field
Change-Id: I49947cccfd2662533da3087cb1f04dc91014cfb0
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java index f44a840a0aa9..7ce235e6d1a5 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java @@ -34,6 +34,7 @@ import java.util.List; public class TextCursorView extends View implements View.OnTouchListener { private static final String LOGTAG = TextCursorView.class.getSimpleName(); private static final float CURSOR_WIDTH = 2f; + private static final int CURSOR_BLINK_TIME = 500; private boolean mInitialized = false; private RectF mCursorPosition = new RectF(); @@ -96,7 +97,7 @@ public class TextCursorView extends View implements View.OnTouchListener { mGraphicHandleFillPaint.setColor(Color.WHITE); mGraphicSelectionVisible = false; - postDelayed(cursorAnimation, 500); + postDelayed(cursorAnimation, CURSOR_BLINK_TIME); mInitialized = true; } @@ -197,7 +198,7 @@ public class TextCursorView extends View implements View.OnTouchListener { mCursorPaint.setAlpha(mCursorPaint.getAlpha() == 0 ? 0xFF : 0); invalidate(); } - postDelayed(cursorAnimation, 500); + postDelayed(cursorAnimation, CURSOR_BLINK_TIME); } }; |