diff options
author | lado <herrlado@gmail.com> | 2012-01-22 23:12:04 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-01-22 23:12:04 +0100 |
commit | 8d3b5d30d328a178081cd95dc9cf463766a2c834 (patch) | |
tree | cb1df564c21aae80b96e36312b164fb7f1381260 /vdrmanager/src/de | |
parent | 2490d008294b7061b4c2f44071b3376739897104 (diff) | |
download | vdr-manager-8d3b5d30d328a178081cd95dc9cf463766a2c834.tar.gz vdr-manager-8d3b5d30d328a178081cd95dc9cf463766a2c834.tar.bz2 |
better handling on backspace
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
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<OrmDatabaseHelper> @Override public void onBackPressed() { + if(cursor.getCount() == 0){ + finish(); + return; + } Preferences.init(this); if (emptyConfig) { Intent intent = new Intent(this, VdrManagerActivity.class); |