From 8d3b5d30d328a178081cd95dc9cf463766a2c834 Mon Sep 17 00:00:00 2001 From: lado Date: Sun, 22 Jan 2012 23:12:04 +0100 Subject: better handling on backspace --- vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java index 0ce3d63..8f8d67d 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java @@ -128,6 +128,10 @@ public class VdrListActivity extends OrmLiteBaseListActivity @Override public void onBackPressed() { + if(cursor.getCount() == 0){ + finish(); + return; + } Preferences.init(this); if (emptyConfig) { Intent intent = new Intent(this, VdrManagerActivity.class); -- cgit v1.2.3