forked from github/Toast-PhoneGap-Plugin
Fix blurry toast on Android 5, resolves EddyVerbruggen/Toast-PhoneGap-Plugin#44
This commit is contained in:
parent
50290d83de
commit
5d9aa4f187
@ -52,7 +52,7 @@ public class Toast extends CordovaPlugin {
|
|||||||
cordova.getActivity().runOnUiThread(new Runnable() {
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
android.widget.Toast toast = android.widget.Toast.makeText(
|
android.widget.Toast toast = android.widget.Toast.makeText(
|
||||||
webView.getContext(),
|
cordova.getActivity().getApplicationContext(),
|
||||||
message,
|
message,
|
||||||
"short".equals(duration) ? android.widget.Toast.LENGTH_SHORT : android.widget.Toast.LENGTH_LONG);
|
"short".equals(duration) ? android.widget.Toast.LENGTH_SHORT : android.widget.Toast.LENGTH_LONG);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user