kopia lustrzana https://github.com/ge0rg/aprsdroid
remove preferences button
rodzic
1d37873ceb
commit
ec91c582c4
|
@ -18,13 +18,4 @@ android:text="@string/startlog"
|
|||
android:layout_below="@+id/singlebtn"
|
||||
>
|
||||
</Button>
|
||||
<Button
|
||||
android:id="@+id/preferencebtn"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/preferences"
|
||||
android:layout_below="@+id/startstopbtn"
|
||||
>
|
||||
</Button>
|
||||
</merge>
|
||||
|
|
|
@ -25,7 +25,6 @@ class APRSdroid extends Activity with OnClickListener {
|
|||
|
||||
lazy val singleBtn = findViewById(R.id.singlebtn).asInstanceOf[Button]
|
||||
lazy val startstopBtn = findViewById(R.id.startstopbtn).asInstanceOf[Button]
|
||||
lazy val prefsBtn = findViewById(R.id.preferencebtn).asInstanceOf[Button]
|
||||
|
||||
lazy val locReceiver = new BroadcastReceiver() {
|
||||
override def onReceive(ctx : Context, i : Intent) {
|
||||
|
@ -50,7 +49,7 @@ class APRSdroid extends Activity with OnClickListener {
|
|||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.main)
|
||||
|
||||
for (btn <- List(singleBtn, startstopBtn, prefsBtn)) {
|
||||
for (btn <- List(singleBtn, startstopBtn)) {
|
||||
btn.setOnClickListener(this);
|
||||
}
|
||||
|
||||
|
@ -127,8 +126,6 @@ class APRSdroid extends Activity with OnClickListener {
|
|||
stopService(serviceIntent(AprsService.SERVICE))
|
||||
}
|
||||
setupButtons(!is_running)
|
||||
case R.id.preferencebtn =>
|
||||
startActivity(new Intent(this, classOf[PrefsAct]));
|
||||
case _ =>
|
||||
status.setText(view.asInstanceOf[Button].getText)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue