mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 16:25:05 +01:00
Remove obsolete method
This commit is contained in:
parent
ed6ab4daf8
commit
52f9891939
@ -74,18 +74,6 @@ class Images {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.P)
|
|
||||||
fun getRoundedBitmapForNewConversation(context: Context): Bitmap {
|
|
||||||
val activityManager = context.getSystemService(ACTIVITY_SERVICE) as ActivityManager?
|
|
||||||
val size = activityManager!!.launcherLargeIconSize
|
|
||||||
val layers = arrayOfNulls<Drawable>(2)
|
|
||||||
layers[0] = context.getDrawable(R.drawable.primary_color_circle)
|
|
||||||
layers[1] = context.getDrawable(R.drawable.ic_add_white_24px)
|
|
||||||
val layeredDrawable = LayerDrawable(layers)
|
|
||||||
layeredDrawable.setLayerHeight(1, size / 2)
|
|
||||||
return (layeredDrawable as BitmapDrawable).toBitmap()
|
|
||||||
}
|
|
||||||
|
|
||||||
// returns null if it's one-to-one that you need to fetch yourself
|
// returns null if it's one-to-one that you need to fetch yourself
|
||||||
fun getImageForConversation(context: Context, conversation: Conversation): Drawable? {
|
fun getImageForConversation(context: Context, conversation: Conversation): Drawable? {
|
||||||
conversation.objectType?.let { objectType ->
|
conversation.objectType?.let { objectType ->
|
||||||
|
Loading…
Reference in New Issue
Block a user