/**
* Show the spinner.
*
* @param title Title of the dialog
* @param message The message of the dialog
*/
public synchronized void activityStart(final String title, final String message) {
if (this.spinnerDialog != null) {
this.spinnerDialog.dismiss();
this.spinnerDialog = null;
}
final CordovaInterface cordova = this.cordova;
Runnable runnable = new Runnable() {
public void run() {
Notification.this.spinnerDialog = ProgressDialog.show(cordova.getActivity(), title, message, true, true,
new DialogInterface.OnCancelListener() {
public void onCancel(DialogInterface dialog) {
Notification.this.spinnerDialog = null;
}
});
}
};
this.cordova.getActivity().runOnUiThread(runnable);
}
Notification.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:cordova-android-chromium
作者:
评论列表
文章目录