From 188b5eb323a5cad971a2e353c17190a88785bf23 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Tue, 5 Jun 2012 09:47:27 -0400 Subject: [PATCH] Added an else block that finishes the ListActivity in onActivityResult() if started via new ringer shortcut refs #93 Signed-off-by: Ricky Barrette --- .../TwentyCodes/android/LocationRinger/ui/ListActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ListActivity.java b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ListActivity.java index 34aba07..6b16eac 100644 --- a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ListActivity.java +++ b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ListActivity.java @@ -120,6 +120,11 @@ public class ListActivity extends Activity implements OnItemClickListener, OnCli }); } }).start(); + } else { + final String action = ListActivity.this.getIntent().getAction(); + if(action != null) + if(action.equals(ACTION_NEW_RINGER)) + finish(); } }