|
|
@ -35,21 +35,36 @@ public class ActivityError extends ActivityBase {
|
|
|
|
static final int PI_ERROR = 1;
|
|
|
|
static final int PI_ERROR = 1;
|
|
|
|
static final int PI_ALERT = 2;
|
|
|
|
static final int PI_ALERT = 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TextView tvTitle;
|
|
|
|
|
|
|
|
private TextView tvMessage;
|
|
|
|
|
|
|
|
private Button btnPassword;
|
|
|
|
|
|
|
|
private ImageButton ibSetting;
|
|
|
|
|
|
|
|
private ImageButton ibInfo;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
|
|
getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
|
|
|
|
getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
|
|
|
|
|
|
|
|
setContentView(R.layout.activity_error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tvTitle = findViewById(R.id.tvTitle);
|
|
|
|
|
|
|
|
tvMessage = findViewById(R.id.tvMessage);
|
|
|
|
|
|
|
|
btnPassword = findViewById(R.id.btnPassword);
|
|
|
|
|
|
|
|
ibSetting = findViewById(R.id.ibSetting);
|
|
|
|
|
|
|
|
ibInfo = findViewById(R.id.ibInfo);
|
|
|
|
|
|
|
|
|
|
|
|
View view = LayoutInflater.from(this).inflate(R.layout.activity_error, null);
|
|
|
|
load();
|
|
|
|
setContentView(view);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TextView tvTitle = view.findViewById(R.id.tvTitle);
|
|
|
|
@Override
|
|
|
|
TextView tvMessage = view.findViewById(R.id.tvMessage);
|
|
|
|
protected void onNewIntent(Intent intent) {
|
|
|
|
Button btnPassword = view.findViewById(R.id.btnPassword);
|
|
|
|
super.onNewIntent(intent);
|
|
|
|
ImageButton ibSetting = view.findViewById(R.id.ibSetting);
|
|
|
|
setIntent(intent);
|
|
|
|
ImageButton ibInfo = view.findViewById(R.id.ibInfo);
|
|
|
|
load();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void load() {
|
|
|
|
Intent intent = getIntent();
|
|
|
|
Intent intent = getIntent();
|
|
|
|
String type = intent.getStringExtra("type");
|
|
|
|
String type = intent.getStringExtra("type");
|
|
|
|
String title = intent.getStringExtra("title");
|
|
|
|
String title = intent.getStringExtra("title");
|
|
|
|