mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
proper kotlin enum naming pattern
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
4d5eb127f8
commit
96680fdeca
4 changed files with 19 additions and 19 deletions
|
@ -80,98 +80,98 @@ class AvatarIT : AbstractIT() {
|
|||
|
||||
runOnUiThread {
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.online, "😘", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.Online, "😘", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.online, "☁️", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.Online, "☁️", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.online, "🌴️", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.Online, "🌴️", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.online, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.Online, "", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.dnd, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.Dnd, "", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.away, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(christine, StatusType.Away, "", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.offline, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(paulette, StatusType.Offline, "", targetContext),
|
||||
width * 2,
|
||||
1,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.online, "😘", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Online, "😘", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.online, "☁️", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Online, "☁️", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.online, "🌴️", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Online, "🌴️", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.online, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Online, "", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.dnd, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Dnd, "", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.away, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Away, "", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
)
|
||||
|
||||
fragment.addBitmap(
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.offline, "", targetContext),
|
||||
BitmapUtils.createAvatarWithStatus(textBitmap, StatusType.Offline, "", targetContext),
|
||||
width,
|
||||
2,
|
||||
targetContext
|
||||
|
|
|
@ -23,5 +23,5 @@
|
|||
package com.nextcloud.client.account
|
||||
|
||||
enum class StatusType {
|
||||
online, offline, dnd, away, unknown
|
||||
Online, Offline, Dnd, Away, Unknown
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ public class UsersAndGroupsSearchProvider extends ContentProvider {
|
|||
statusObject.isNull("icon") ? "" : statusObject.getString("icon"),
|
||||
statusObject.isNull("clearAt") ? "" : statusObject.getString("clearAt"));
|
||||
} else {
|
||||
status = new Status(StatusType.unknown, "", "", "");
|
||||
status = new Status(StatusType.Unknown, "", "", "");
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
|
|
|
@ -432,7 +432,7 @@ public final class BitmapUtils {
|
|||
StatusDrawable statusDrawable;
|
||||
if (TextUtils.isEmpty(icon)) {
|
||||
switch (status) {
|
||||
case dnd:
|
||||
case Dnd:
|
||||
statusDrawable = new StatusDrawable(R.drawable.ic_user_status_dnd, statusSize, context);
|
||||
statusDrawable.setBounds(width / 2,
|
||||
width / 2,
|
||||
|
@ -440,7 +440,7 @@ public final class BitmapUtils {
|
|||
width);
|
||||
break;
|
||||
|
||||
case online:
|
||||
case Online:
|
||||
statusDrawable = new StatusDrawable(new Color(255, 73, 179, 130), statusSize);
|
||||
statusDrawable.setBounds(width,
|
||||
width,
|
||||
|
@ -448,7 +448,7 @@ public final class BitmapUtils {
|
|||
width);
|
||||
break;
|
||||
|
||||
case away:
|
||||
case Away:
|
||||
statusDrawable = new StatusDrawable(R.drawable.ic_user_status_away, statusSize, context);
|
||||
statusDrawable.setBounds(width / 2,
|
||||
width / 2,
|
||||
|
|
Loading…
Reference in a new issue