Skip to content

Commit

Permalink
fix: show online status
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 9, 2024
1 parent 1ef4a41 commit 4cbeebb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1570,14 +1570,14 @@ public void drawStatusWithImage(Canvas canvas, ImageReceiver imageReceiver, int
int xCenterRegion = x - spaceLeft;
int yCenterRegion = y - spaceLeft;
int colorOnline = diff > 0
? Theme.getColor(Theme.key_chats_onlineCircle)
? Theme.getColor(Theme.key_chats_onlineCircle, resourcesProvider)
: diff > -15 * 60
? android.graphics.Color.argb(255, 234, 234, 30)
: diff > -30 * 60
? android.graphics.Color.argb(255, 234, 132, 30)
: diff > -60 * 60
? android.graphics.Color.argb(255, 234, 30, 30)
: 0;
: Theme.getColor(Theme.key_chats_onlineCircle, resourcesProvider);
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(colorOnline);
canvas.save();
Expand Down

0 comments on commit 4cbeebb

Please sign in to comment.