fix a couple lint errors

This commit is contained in:
Vincent Breitmoser 2015-02-28 17:49:09 +01:00
parent 0557e0680e
commit 4e29d027af
2 changed files with 5 additions and 4 deletions

View File

@ -149,7 +149,7 @@ public class ImportKeysProxyActivity extends FragmentActivity {
private void processScannedContent(Uri uri) { private void processScannedContent(Uri uri) {
Log.d(Constants.TAG, "scanned: " + uri.toString()); Log.d(Constants.TAG, "scanned: " + uri);
String fingerprint = null; String fingerprint = null;

View File

@ -20,6 +20,7 @@ package org.sufficientlysecure.keychain.ui;
import android.animation.ArgbEvaluator; import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator; import android.animation.ObjectAnimator;
import android.annotation.SuppressLint;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.app.Activity; import android.app.Activity;
import android.app.ActivityOptions; import android.app.ActivityOptions;
@ -127,6 +128,7 @@ public class ViewKeyActivity extends BaseActivity implements
private String mFingerprint; private String mFingerprint;
private long mMasterKeyId; private long mMasterKeyId;
@SuppressLint("InflateParams")
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@ -210,7 +212,7 @@ public class ViewKeyActivity extends BaseActivity implements
} }
} }
Log.i(Constants.TAG, "mDataUri: " + mDataUri.toString()); Log.i(Constants.TAG, "mDataUri: " + mDataUri);
mActionEncryptFile.setOnClickListener(new View.OnClickListener() { mActionEncryptFile.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -624,8 +626,6 @@ public class ViewKeyActivity extends BaseActivity implements
/** /**
* Load QR Code asynchronously and with a fade in animation * Load QR Code asynchronously and with a fade in animation
*
* @param fingerprint
*/ */
private void loadQrCode(final String fingerprint) { private void loadQrCode(final String fingerprint) {
AsyncTask<Void, Void, Bitmap> loadTask = AsyncTask<Void, Void, Bitmap> loadTask =
@ -952,6 +952,7 @@ public class ViewKeyActivity extends BaseActivity implements
mPreviousColor = color; mPreviousColor = color;
} }
//noinspection deprecation
mStatusImage.setAlpha(80); mStatusImage.setAlpha(80);
break; break;