From ec91c582c41b85537c2a79c9de486315ed75a6ae Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Fri, 22 Jan 2010 18:03:35 +0100 Subject: [PATCH] remove preferences button --- res/layout/buttons.xml | 9 --------- src/APRSdroid.scala | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/res/layout/buttons.xml b/res/layout/buttons.xml index dd43018..385dcb7 100644 --- a/res/layout/buttons.xml +++ b/res/layout/buttons.xml @@ -18,13 +18,4 @@ android:text="@string/startlog" android:layout_below="@+id/singlebtn" > - diff --git a/src/APRSdroid.scala b/src/APRSdroid.scala index 87b174a..1314fa7 100644 --- a/src/APRSdroid.scala +++ b/src/APRSdroid.scala @@ -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) }