From dba76dd0a602f44084f86871f6d7390619a2164c Mon Sep 17 00:00:00 2001 From: DjBushido Date: Mon, 28 Apr 2014 12:32:04 -0400 Subject: [PATCH] Slight bug fix Prevents user from moving backward to a list that does not have items checked. --- UNCCScavenger/src/edu/uncc/scavenger/FoundActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/FoundActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/FoundActivity.java index f45d065..d3f8441 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/FoundActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/FoundActivity.java @@ -15,6 +15,7 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; +import android.view.ViewDebug.FlagToString; import android.webkit.WebView; import android.widget.Button; import android.widget.TextView; @@ -46,6 +47,7 @@ public class FoundActivity extends Activity { @Override public void onClick(View v) { intent = new Intent(FoundActivity.this, MainActivity.class); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // Clear the back stack startActivity(intent); finish(); }