From b87bc9939360aa4d829b1b0c502b0be4305c4571 Mon Sep 17 00:00:00 2001 From: vikrama Date: Sat, 17 Sep 2011 19:36:00 +0000 Subject: [PATCH] Minor whitespace and comment cleanup git-svn-id: https://zxing.googlecode.com/svn/trunk@1916 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../src/com/google/zxing/client/android/wifi/Killer.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/android/src/com/google/zxing/client/android/wifi/Killer.java b/android/src/com/google/zxing/client/android/wifi/Killer.java index c2cda7f14..3279b1687 100644 --- a/android/src/com/google/zxing/client/android/wifi/Killer.java +++ b/android/src/com/google/zxing/client/android/wifi/Killer.java @@ -29,12 +29,13 @@ import android.net.Uri; import android.os.Handler; /** - * Close the parent after a delay. + * Start a browser after a delay to let the user read the informative + * message. * @author Vikram Aggarwal */ final class Killer implements Runnable { - // Three full seconds + // Wait for this long, to enable the user to read the status. private static final long DELAY_MS = 3 * 1000L; private final Activity parent; @@ -66,9 +67,7 @@ final class Killer implements Runnable { public void run() { handler.post(new Runnable() { public void run() { - // This will kill the parent, a bad idea. -// parent.finish(); - // This will start the browser, a better idea + // This will start the browser. launchIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com/"))); } });