49 lines
1.7 KiB
Java
49 lines
1.7 KiB
Java
package com.ubt.jimu.connect.view;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.widget.TextView;
|
|
import com.ubt.jimu.R;
|
|
import com.ubt.jimu.widgets.NavigationBarView;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class BtSpeakerConnectHelpActivity extends Activity {
|
|
private NavigationBarView a;
|
|
private TextView b;
|
|
private String c;
|
|
|
|
@Override // android.app.Activity
|
|
protected void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
setContentView(R.layout.activity_speaker_connect_help);
|
|
Intent intent = getIntent();
|
|
if (intent != null) {
|
|
this.c = intent.getStringExtra("KEY_BT_SPEAKER_NAME");
|
|
}
|
|
this.a = (NavigationBarView) findViewById(R.id.nbv_bar);
|
|
this.a.setTitle(R.string.how_to_connect_bt_speaker);
|
|
this.a.setLeftIvSrc(R.drawable.community_cancel);
|
|
this.a.setListener(new NavigationBarView.OnActionClickListener() { // from class: com.ubt.jimu.connect.view.BtSpeakerConnectHelpActivity.1
|
|
public void a(View view) {
|
|
BtSpeakerConnectHelpActivity.this.finish();
|
|
}
|
|
|
|
@Override // com.ubt.jimu.widgets.NavigationBarView.OnActionClickListener
|
|
public void onClick(View view) {
|
|
if (view.getId() == R.id.iv_left) {
|
|
a(view);
|
|
}
|
|
}
|
|
});
|
|
this.b = (TextView) findViewById(R.id.tv_tap_to_connect);
|
|
String string = getString(R.string.tap_to_connect);
|
|
if (!TextUtils.isEmpty(this.c)) {
|
|
string = string.replace("{0}", this.c);
|
|
}
|
|
this.b.setText(string);
|
|
}
|
|
}
|