/**
* Handles the result of barcode decoding in the context of the Android platform, by dispatching the
* proper intents to open other activities like GMail, Maps, etc.
+ *
+ * @author dswitkin@google.com (Daniel Switkin)
*/
public final class ResultButtonListener implements Button.OnClickListener {
-
- final ResultHandler mResultHandler;
- final int mIndex;
+ private final ResultHandler resultHandler;
+ private final int index;
public ResultButtonListener(ResultHandler resultHandler, int index) {
- mResultHandler = resultHandler;
- mIndex = index;
+ this.resultHandler = resultHandler;
+ this.index = index;
}
public void onClick(View view) {
- mResultHandler.handleButtonPress(mIndex);
+ resultHandler.handleButtonPress(index);
}
-
}