remove preferences button

remotes/nogy/update_90
Georg Lukas 2010-01-22 18:03:35 +01:00
rodzic 1d37873ceb
commit ec91c582c4
2 zmienionych plików z 1 dodań i 13 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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)
}