Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
81d2e937
Commit
81d2e937
authored
12 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix stuck gesture floatin preview text" into jb-mr1-dev
parents
61dcaaf1
77bcd6be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java
+9
-9
9 additions, 9 deletions
...roid/inputmethod/keyboard/internal/PreviewPlacerView.java
with
9 additions
and
9 deletions
java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java
+
9
−
9
View file @
81d2e937
...
@@ -46,7 +46,6 @@ public class PreviewPlacerView extends RelativeLayout {
...
@@ -46,7 +46,6 @@ public class PreviewPlacerView extends RelativeLayout {
private
final
float
mGestureFloatingPreviewHorizontalPadding
;
private
final
float
mGestureFloatingPreviewHorizontalPadding
;
private
final
float
mGestureFloatingPreviewVerticalPadding
;
private
final
float
mGestureFloatingPreviewVerticalPadding
;
private
final
float
mGestureFloatingPreviewRoundRadius
;
private
final
float
mGestureFloatingPreviewRoundRadius
;
/* package */
final
int
mGestureFloatingPreviewTextLingerTimeout
;
private
int
mXOrigin
;
private
int
mXOrigin
;
private
int
mYOrigin
;
private
int
mYOrigin
;
...
@@ -78,11 +77,14 @@ public class PreviewPlacerView extends RelativeLayout {
...
@@ -78,11 +77,14 @@ public class PreviewPlacerView extends RelativeLayout {
private
static
final
int
MSG_UPDATE_GESTURE_PREVIEW_TRAIL
=
1
;
private
static
final
int
MSG_UPDATE_GESTURE_PREVIEW_TRAIL
=
1
;
private
final
Params
mGesturePreviewTrailParams
;
private
final
Params
mGesturePreviewTrailParams
;
private
final
int
mGestureFloatingPreviewTextLingerTimeout
;
public
DrawingHandler
(
final
PreviewPlacerView
outerInstance
,
public
DrawingHandler
(
final
PreviewPlacerView
outerInstance
,
final
Params
gesturePreviewTrailParams
)
{
final
Params
gesturePreviewTrailParams
,
final
int
getstureFloatinPreviewTextLinerTimeout
)
{
super
(
outerInstance
);
super
(
outerInstance
);
mGesturePreviewTrailParams
=
gesturePreviewTrailParams
;
mGesturePreviewTrailParams
=
gesturePreviewTrailParams
;
mGestureFloatingPreviewTextLingerTimeout
=
getstureFloatinPreviewTextLinerTimeout
;
}
}
@Override
@Override
...
@@ -105,10 +107,8 @@ public class PreviewPlacerView extends RelativeLayout {
...
@@ -105,10 +107,8 @@ public class PreviewPlacerView extends RelativeLayout {
public
void
dismissGestureFloatingPreviewText
()
{
public
void
dismissGestureFloatingPreviewText
()
{
cancelDismissGestureFloatingPreviewText
();
cancelDismissGestureFloatingPreviewText
();
final
PreviewPlacerView
placerView
=
getOuterInstance
();
sendMessageDelayed
(
obtainMessage
(
MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT
),
sendMessageDelayed
(
mGestureFloatingPreviewTextLingerTimeout
);
obtainMessage
(
MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT
),
placerView
.
mGestureFloatingPreviewTextLingerTimeout
);
}
}
private
void
cancelUpdateGestureTrailPreview
()
{
private
void
cancelUpdateGestureTrailPreview
()
{
...
@@ -122,7 +122,6 @@ public class PreviewPlacerView extends RelativeLayout {
...
@@ -122,7 +122,6 @@ public class PreviewPlacerView extends RelativeLayout {
}
}
public
void
cancelAllMessages
()
{
public
void
cancelAllMessages
()
{
cancelDismissGestureFloatingPreviewText
();
cancelUpdateGestureTrailPreview
();
cancelUpdateGestureTrailPreview
();
}
}
}
}
...
@@ -151,12 +150,13 @@ public class PreviewPlacerView extends RelativeLayout {
...
@@ -151,12 +150,13 @@ public class PreviewPlacerView extends RelativeLayout {
R
.
styleable
.
KeyboardView_gestureFloatingPreviewVerticalPadding
,
0.0f
);
R
.
styleable
.
KeyboardView_gestureFloatingPreviewVerticalPadding
,
0.0f
);
mGestureFloatingPreviewRoundRadius
=
keyboardViewAttr
.
getDimension
(
mGestureFloatingPreviewRoundRadius
=
keyboardViewAttr
.
getDimension
(
R
.
styleable
.
KeyboardView_gestureFloatingPreviewRoundRadius
,
0.0f
);
R
.
styleable
.
KeyboardView_gestureFloatingPreviewRoundRadius
,
0.0f
);
mG
estureFloatingPreviewTextLingerTimeout
=
keyboardViewAttr
.
getInt
(
final
int
g
estureFloatingPreviewTextLingerTimeout
=
keyboardViewAttr
.
getInt
(
R
.
styleable
.
KeyboardView_gestureFloatingPreviewTextLingerTimeout
,
0
);
R
.
styleable
.
KeyboardView_gestureFloatingPreviewTextLingerTimeout
,
0
);
mGesturePreviewTrailParams
=
new
Params
(
keyboardViewAttr
);
mGesturePreviewTrailParams
=
new
Params
(
keyboardViewAttr
);
keyboardViewAttr
.
recycle
();
keyboardViewAttr
.
recycle
();
mDrawingHandler
=
new
DrawingHandler
(
this
,
mGesturePreviewTrailParams
);
mDrawingHandler
=
new
DrawingHandler
(
this
,
mGesturePreviewTrailParams
,
gestureFloatingPreviewTextLingerTimeout
);
final
Paint
gesturePaint
=
new
Paint
();
final
Paint
gesturePaint
=
new
Paint
();
gesturePaint
.
setAntiAlias
(
true
);
gesturePaint
.
setAntiAlias
(
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment