remote-reader: fixed linter problems
This commit is contained in:
@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion "23.0.3"
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.vsmartcard.remotesmartcardreader.app"
|
applicationId "com.vsmartcard.remotesmartcardreader.app"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
/** Simple TextView which is used to output log data received through the LogNode interface.
|
/** Simple TextView which is used to output log data received through the LogNode interface.
|
||||||
*/
|
*/
|
||||||
public class LogView extends TextView implements LogNode {
|
public class LogView extends androidx.appcompat.widget.AppCompatTextView implements LogNode {
|
||||||
|
|
||||||
public LogView(Context context) {
|
public LogView(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ class VPCDWorker extends AsyncTask<VPCDWorker.VPCDWorkerParams, Void, Void> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.i(this.getClass().getName(), "Connecting to " + params.hostname + ":" + Integer.toString(params.port) + "...");
|
Log.i(this.getClass().getName(), "Connecting to " + params.hostname + ":" + params.port + "...");
|
||||||
vpcdConnect(params.hostname, params.port);
|
vpcdConnect(params.hostname, params.port);
|
||||||
Log.i(this.getClass().getName(), "Connected to VPCD");
|
Log.i(this.getClass().getName(), "Connected to VPCD");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import java.io.IOException;
|
|||||||
public class NFCReader implements SCReader {
|
public class NFCReader implements SCReader {
|
||||||
|
|
||||||
private final IsoDep card;
|
private final IsoDep card;
|
||||||
private Activity activity;
|
private final Activity activity;
|
||||||
|
|
||||||
private NFCReader(IsoDep sc, Activity activity) throws IOException {
|
private NFCReader(IsoDep sc, Activity activity) throws IOException {
|
||||||
this.card = sc;
|
this.card = sc;
|
||||||
@@ -47,7 +47,7 @@ public class NFCReader implements SCReader {
|
|||||||
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(activity);
|
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||||
int timeout = Integer.parseInt(SP.getString("timeout", "500"));
|
int timeout = Integer.parseInt(SP.getString("timeout", "500"));
|
||||||
card.setTimeout(timeout);
|
card.setTimeout(timeout);
|
||||||
com.example.android.common.logger.Log.i(getClass().getName(), "Timeout set to " + Integer.toString(timeout));
|
com.example.android.common.logger.Log.i(getClass().getName(), "Timeout set to " + timeout);
|
||||||
this.activity = activity;
|
this.activity = activity;
|
||||||
avoidScreenTimeout();
|
avoidScreenTimeout();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user