]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/util/IntentLauncher.java
Fix issues noted by lint tools.
[Dictionary.git] / src / com / hughes / android / util / IntentLauncher.java
index 036f46c15505d59409d5a4680a983911bf2bc071..632a50c84290a85ffae49d538cd65c7ce37b0a3f 100644 (file)
@@ -1,3 +1,4 @@
+
 package com.hughes.android.util;
 
 import android.content.Context;
@@ -6,27 +7,26 @@ import android.view.View;
 import android.view.View.OnClickListener;
 
 public class IntentLauncher implements OnClickListener {
-  
-  final Context context;
-  final Intent intent;
-  
-  public IntentLauncher(final Context context, final Intent intent) {
-    this.context = context;
-    this.intent = intent;
-  }
-
-  protected void onGo() {
-  }
-
-
-  private void go() {
-    onGo();
-    context.startActivity(intent);
-  }
-
-  @Override
-  public void onClick(View v) {
-    go();
-  }
+
+    private final Context context;
+    private final Intent intent;
+
+    public IntentLauncher(final Context context, final Intent intent) {
+        this.context = context;
+        this.intent = intent;
+    }
+
+    protected void onGo() {
+    }
+
+    private void go() {
+        onGo();
+        context.startActivity(intent);
+    }
+
+    @Override
+    public void onClick(View v) {
+        go();
+    }
 
 }