mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Add some annotations
// FREEBIE
This commit is contained in:
parent
08948fe05a
commit
962944a974
@ -7,6 +7,7 @@ import android.net.Uri;
|
|||||||
import android.support.annotation.DrawableRes;
|
import android.support.annotation.DrawableRes;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
|
import android.support.annotation.WorkerThread;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
@ -46,6 +47,7 @@ public class ContactPhotoFactory {
|
|||||||
return getContactPhoto(context, uri, address, name, targetSize);
|
return getContactPhoto(context, uri, address, name, targetSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@WorkerThread
|
||||||
public static ContactPhoto getContactPhoto(@NonNull Context context,
|
public static ContactPhoto getContactPhoto(@NonNull Context context,
|
||||||
@Nullable Uri uri,
|
@Nullable Uri uri,
|
||||||
@NonNull Address address,
|
@NonNull Address address,
|
||||||
@ -73,6 +75,7 @@ public class ContactPhotoFactory {
|
|||||||
return new BitmapContactPhoto(BitmapFactory.decodeByteArray(avatar, 0, avatar.length));
|
return new BitmapContactPhoto(BitmapFactory.decodeByteArray(avatar, 0, avatar.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@WorkerThread
|
||||||
public static ContactPhoto getSignalAvatarContactPhoto(@NonNull Context context,
|
public static ContactPhoto getSignalAvatarContactPhoto(@NonNull Context context,
|
||||||
@NonNull Address address,
|
@NonNull Address address,
|
||||||
@Nullable String name,
|
@Nullable String name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user