File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ else if ("set".equals(action)) {
36
36
final String key = args .getString (1 );
37
37
final String value = args .getString (2 );
38
38
39
- cordova .getThreadPool ().execute (new Runnable () {
39
+ cordova .getActivity ().runOnUiThread (new Runnable () {
40
40
public void run () {
41
41
try {
42
42
if (storageList .containsKey (service )) {
@@ -60,7 +60,7 @@ else if ("get".equals(action)) {
60
60
final String service = args .getString (0 );
61
61
final String key = args .getString (1 );
62
62
63
- cordova .getThreadPool ().execute (new Runnable () {
63
+ cordova .getActivity ().runOnUiThread (new Runnable () {
64
64
public void run () {
65
65
try {
66
66
if (storageList .containsKey (service )) {
@@ -81,7 +81,7 @@ else if ("remove".equals(action)) {
81
81
final String service = args .getString (0 );
82
82
final String key = args .getString (1 );
83
83
84
- cordova .getThreadPool ().execute (new Runnable () {
84
+ cordova .getActivity ().runOnUiThread (new Runnable () {
85
85
public void run () {
86
86
try {
87
87
if (storageList .containsKey (service )) {
You can’t perform that action at this time.
0 commit comments