mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
[CB-481] Removed todo comment introduced by bryce, clarified what is going on
This commit is contained in:
parent
beb9460538
commit
85aa740c98
@ -48,7 +48,10 @@ public class App extends Plugin {
|
|||||||
if (action.equals("clearCache")) {
|
if (action.equals("clearCache")) {
|
||||||
this.clearCache();
|
this.clearCache();
|
||||||
}
|
}
|
||||||
else if (action.equals("show")) { // TODO @bc - Not in master branch. When should this be called?
|
else if (action.equals("show")) {
|
||||||
|
// This gets called from JavaScript onCordovaReady to show the webview.
|
||||||
|
// I recommend we change the name of the Message as spinner/stop is not
|
||||||
|
// indicative of what this actually does (shows the webview).
|
||||||
cordova.getActivity().runOnUiThread(new Runnable() {
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
webView.postMessage("spinner", "stop");
|
webView.postMessage("spinner", "stop");
|
||||||
|
Loading…
Reference in New Issue
Block a user