- Check for permissions.
- Fix Welsh positional format.
- Remove UIThread restriction.
- Asynchronous method does not need to be restricted to UIThread and there is no StaticFieldLeak to suppress.
- Fix or Ignore New API errors.
- Reduce severity of some errors from L10N.
This commit is contained in:
Alan Evans
2019-05-08 08:45:57 -03:00
parent 2ccdf0e396
commit b1057d63a1
10 changed files with 53 additions and 23 deletions

View File

@@ -1,12 +1,10 @@
package org.thoughtcrime.securesms.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.annotation.UiThread;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.crypto.storage.TextSecureIdentityKeyStore;
@@ -47,8 +45,6 @@ public class IdentityUtil {
private static final String TAG = IdentityUtil.class.getSimpleName();
@SuppressLint("StaticFieldLeak")
@UiThread
public static ListenableFuture<Optional<IdentityRecord>> getRemoteIdentityKey(final Context context, final Recipient recipient) {
final SettableFuture<Optional<IdentityRecord>> future = new SettableFuture<>();