|
@@ -28,6 +28,7 @@ import android.widget.EditText;
|
|
|
import android.widget.ImageView;
|
|
|
import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
|
+import android.widget.Toast;
|
|
|
|
|
|
import com.google.gson.Gson;
|
|
|
import com.vvsip.ansip.IVvsipServiceListener;
|
|
@@ -1982,7 +1983,7 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
|
|
|
@OnClick(R.id.activity_calling_door_layout_imageView_logo)
|
|
|
public void clickLogoView(View view) {
|
|
|
getAllData();
|
|
|
- showDialog(CallingDoorActivity.this, "温馨提示", StringUtils.getAllVersionName(), "取消", "确定", "查询异常日志");
|
|
|
+ showDialog(CallingDoorActivity.this, "温馨提示", StringUtils.getAllVersionName(), "取消", "启动新app", "进入设置");
|
|
|
}
|
|
|
|
|
|
@OnLongClick(R.id.activity_calling_door_layout_imageView_logo)
|
|
@@ -2010,10 +2011,25 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void onClickButtonTwo() {
|
|
|
+ Intent intent = AutoRebootUtil.getNewAppIntent(MyApplication.getAppContext());
|
|
|
+ if (intent != null) {
|
|
|
+ Toast.makeText(CallingDoorActivity.this, "新V3系统app已安装,即将启动...", Toast.LENGTH_SHORT).show();
|
|
|
+ startActivity(intent);
|
|
|
+ } else {
|
|
|
+ Toast.makeText(CallingDoorActivity.this, "新V3系统app未安装,请先安装新系统app...", Toast.LENGTH_SHORT).show();
|
|
|
+ }
|
|
|
+
|
|
|
+ super.onClickButtonTwo();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public void onClickButtonThree() {
|
|
|
+ startActivity(new Intent(Settings.ACTION_SETTINGS));
|
|
|
+
|
|
|
super.onClickButtonThree();
|
|
|
|
|
|
- View dialogView = View.inflate(context, R.layout.dialog_error_log, null);
|
|
|
+ /*View dialogView = View.inflate(context, R.layout.dialog_error_log, null);
|
|
|
final EditText pwd = dialogView.findViewById(R.id.edit_password);
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
|
|
builder.setTitle("查询异常日志");
|
|
@@ -2036,7 +2052,7 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
|
|
|
|
|
|
AlertDialog pwdDialog = builder.create();
|
|
|
pwdDialog.setView(dialogView);
|
|
|
- pwdDialog.show();
|
|
|
+ pwdDialog.show();*/
|
|
|
}
|
|
|
|
|
|
/**
|