]> Joshua Wise's Git repositories - dumload.git/blobdiff - src/com/joshuawise/dumload/NotifSlave.java
Remove generated/IDE files
[dumload.git] / src / com / joshuawise / dumload / NotifSlave.java
index 21af25ec5dab8af991286b04fe72b5df3fde7c4f..40db024f8a7a3ccdab338cf61d33d5c2b1f4a072 100644 (file)
@@ -62,7 +62,12 @@ public class NotifSlave extends Activity {
                final Messenger m = (Messenger)i.getParcelableExtra("com.joshuawise.dumload.returnmessenger");
                String reqtype = i.getStringExtra("com.joshuawise.dumload.reqtype");
                String prompt = i.getStringExtra("com.joshuawise.dumload.prompt");
-               /* If any of these were null, we'll just take the exception. */
+               
+               if (prompt == null || reqtype == null || m == null)     /* i.e., we got called by a dummy notification */
+               {
+                       this.finish();
+                       return;
+               }
        
                if (reqtype.equals("yesno")) {
                        AlertDialog.Builder builder = new AlertDialog.Builder(this);
This page took 0.027768 seconds and 4 git commands to generate.