Skip to content

Commit

Permalink
remove preferences button
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Jan 22, 2010
1 parent 1d37873 commit ec91c58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions res/layout/buttons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
5 changes: 1 addition & 4 deletions src/APRSdroid.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit ec91c58

Please sign in to comment.