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
5faf4195
Commit
5faf4195
authored
12 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Suggestion strip will honor haptic feedback settings of keyboard
Bug: 7313372 Change-Id: I427da8de68be3d2a78e810556340b96ab4edcc2d
parent
8e360c68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/res/layout/suggestion_word.xml
+3
-0
3 additions, 0 deletions
java/res/layout/suggestion_word.xml
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+2
-0
2 additions, 0 deletions
...id/inputmethod/latin/suggestions/SuggestionStripView.java
with
5 additions
and
0 deletions
java/res/layout/suggestion_word.xml
+
3
−
0
View file @
5faf4195
...
...
@@ -18,6 +18,8 @@
*/
-->
<!-- Provide a haptic feedback by ourselves based on the keyboard settings.
We just need to ignore the system's haptic feedback settings. -->
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
@@ -29,6 +31,7 @@
android:paddingTop=
"0dp"
android:paddingRight=
"@dimen/suggestion_padding"
android:paddingBottom=
"0dp"
android:hapticFeedbackEnabled=
"false"
android:focusable=
"false"
android:clickable=
"false"
android:singleLine=
"true"
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+
2
−
0
View file @
5faf4195
...
...
@@ -61,6 +61,7 @@ import com.android.inputmethod.keyboard.PointerTracker;
import
com.android.inputmethod.keyboard.ViewLayoutUtils
;
import
com.android.inputmethod.latin.AutoCorrection
;
import
com.android.inputmethod.latin.CollectionUtils
;
import
com.android.inputmethod.latin.Constants
;
import
com.android.inputmethod.latin.LatinImeLogger
;
import
com.android.inputmethod.latin.R
;
import
com.android.inputmethod.latin.ResourceUtils
;
...
...
@@ -752,6 +753,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
@Override
public
boolean
onLongClick
(
final
View
view
)
{
KeyboardSwitcher
.
getInstance
().
hapticAndAudioFeedback
(
Constants
.
NOT_A_CODE
);
return
showMoreSuggestions
();
}
...
...
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