Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fluttertoast
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
fluttertoast
Commits
7e4ef594
Commit
7e4ef594
authored
Jan 18, 2019
by
Zac Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove touch listner
parent
a36b2210
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
+2
-2
No files found.
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
View file @
7e4ef594
...
@@ -56,6 +56,7 @@ public class FluttertoastPlugin implements MethodCallHandler {
...
@@ -56,6 +56,7 @@ public class FluttertoastPlugin implements MethodCallHandler {
toast
.
setDuration
(
Toast
.
LENGTH_SHORT
);
toast
.
setDuration
(
Toast
.
LENGTH_SHORT
);
}
}
Boolean
sent
=
false
;
final
Handler
handler
=
new
Handler
();
final
Handler
handler
=
new
Handler
();
final
Runnable
run
=
new
Runnable
()
{
final
Runnable
run
=
new
Runnable
()
{
...
@@ -100,12 +101,11 @@ public class FluttertoastPlugin implements MethodCallHandler {
...
@@ -100,12 +101,11 @@ public class FluttertoastPlugin implements MethodCallHandler {
}
}
}
}
toastView
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
toastView
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
@Override
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
handler
.
removeCallbacks
(
run
);
handler
.
removeCallbacks
(
run
);
toastView
.
setOnTouchListener
(
null
);
try
{
try
{
result
.
success
(
true
);
result
.
success
(
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment