aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-05-04 15:31:44 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-05-04 15:31:44 +0200
commitd1acac75b6af3239701a2df020488db2af2dcb05 (patch)
treedec05f3ddc3d092d2a2b03fd5a1f20053c4e7ad5 /main/src/cgeo/geocaching/cgeocaches.java
parentd4974e33bd2e7816d54709ee40869f79cf56d79c (diff)
downloadcgeo-d1acac75b6af3239701a2df020488db2af2dcb05.zip
cgeo-d1acac75b6af3239701a2df020488db2af2dcb05.tar.gz
cgeo-d1acac75b6af3239701a2df020488db2af2dcb05.tar.bz2
refactoring: unify the action bar layout
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 097aef3..811425c 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -427,6 +427,17 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
}
}
+ // Add the list selection in code. This way we can leave the XML layout the same as for other activities.
+ final View titleBar = findViewById(R.id.actionbar_title);
+ titleBar.setClickable(true);
+ titleBar.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ selectList(v);
+ }
+ });
+
setTitle(title);
setAdapter();