同步请求接口
This commit is contained in:
parent
53c8e212aa
commit
63c0c22419
@ -68,30 +68,28 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
void _alertDialog(){
|
||||
private void _alertDialog(){
|
||||
final UpgradeModule that = this;
|
||||
AlertDialog dialog = new AlertDialog.Builder(reactContext.getCurrentActivity())
|
||||
.setTitle(TITLE)
|
||||
.setMessage(CONTENT)
|
||||
.setNeutralButton("取消",
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
.setTitle(TITLE)
|
||||
.setMessage(CONTENT)
|
||||
.setNeutralButton("取消",
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
)
|
||||
.setNegativeButton("更新",
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
that._startDownload();
|
||||
}
|
||||
}
|
||||
)
|
||||
.setNegativeButton("更新",
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
that._startDownload();
|
||||
}
|
||||
)
|
||||
.show();
|
||||
dialog.setCanceledOnTouchOutside(true);//可选
|
||||
dialog.setCancelable(true);//可选
|
||||
}
|
||||
)
|
||||
.show();
|
||||
}
|
||||
|
||||
private void _startDownload(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user