From 4e29d027af05fc574dc5398d2fb3afcdf3defc70 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sat, 28 Feb 2015 17:49:09 +0100 Subject: fix a couple lint errors --- .../sufficientlysecure/keychain/ui/ImportKeysProxyActivity.java | 2 +- .../java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysProxyActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysProxyActivity.java index 94eaa8171..948da94d8 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysProxyActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysProxyActivity.java @@ -149,7 +149,7 @@ public class ImportKeysProxyActivity extends FragmentActivity { private void processScannedContent(Uri uri) { - Log.d(Constants.TAG, "scanned: " + uri.toString()); + Log.d(Constants.TAG, "scanned: " + uri); String fingerprint = null; diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java index 3bc207419..742cde75c 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java @@ -20,6 +20,7 @@ package org.sufficientlysecure.keychain.ui; import android.animation.ArgbEvaluator; import android.animation.ObjectAnimator; +import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.app.ActivityOptions; @@ -127,6 +128,7 @@ public class ViewKeyActivity extends BaseActivity implements private String mFingerprint; private long mMasterKeyId; + @SuppressLint("InflateParams") @Override protected void onCreate(Bundle 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() { @Override @@ -624,8 +626,6 @@ public class ViewKeyActivity extends BaseActivity implements /** * Load QR Code asynchronously and with a fade in animation - * - * @param fingerprint */ private void loadQrCode(final String fingerprint) { AsyncTask loadTask = @@ -952,6 +952,7 @@ public class ViewKeyActivity extends BaseActivity implements mPreviousColor = color; } + //noinspection deprecation mStatusImage.setAlpha(80); break; -- cgit v1.2.3