remote-reader: fixed linter problems

This commit is contained in:
Frank Morgner
2022-01-25 01:01:23 +01:00
parent 82c044e47a
commit 1cc4175c8b
4 changed files with 4 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.vsmartcard.remotesmartcardreader.app"

View File

@@ -22,7 +22,7 @@ import android.widget.TextView;
/** 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) {
super(context);

View File

@@ -195,7 +195,7 @@ class VPCDWorker extends AsyncTask<VPCDWorker.VPCDWorkerParams, Void, Void> {
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);
Log.i(this.getClass().getName(), "Connected to VPCD");
}

View File

@@ -39,7 +39,7 @@ import java.io.IOException;
public class NFCReader implements SCReader {
private final IsoDep card;
private Activity activity;
private final Activity activity;
private NFCReader(IsoDep sc, Activity activity) throws IOException {
this.card = sc;
@@ -47,7 +47,7 @@ public class NFCReader implements SCReader {
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(activity);
int timeout = Integer.parseInt(SP.getString("timeout", "500"));
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;
avoidScreenTimeout();
}