aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/UIHelper.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-25 16:24:56 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-25 16:24:56 +0200
commitbf2d0d5596a08872230056d056241ee906962171 (patch)
tree08f722037b19e7a94985360874f7de2f646b2f13 /src/eu/siacs/conversations/utils/UIHelper.java
parent18c183a7676e24fa3141a50f628688a0a690f259 (diff)
smoother scrolling (first step)
Diffstat (limited to 'src/eu/siacs/conversations/utils/UIHelper.java')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index f058b9ee..1c52ff0b 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -302,26 +302,6 @@ public class UIHelper {
bgColor, fgColor);
}
- public static Bitmap getErrorPicture(int size) {
- Bitmap bitmap = Bitmap
- .createBitmap(size, size, Bitmap.Config.ARGB_8888);
- Canvas canvas = new Canvas(bitmap);
-
- bitmap.eraseColor(0xFFe92727);
-
- Paint paint = new Paint();
- paint.setColor(0xffe5e5e5);
- paint.setTextSize((float) (size * 0.9));
- paint.setAntiAlias(true);
- Rect rect = new Rect();
- paint.getTextBounds("!", 0, 1, rect);
- float width = paint.measureText("!");
- canvas.drawText("!", (size / 2) - (width / 2),
- (size / 2) + (rect.height() / 2), paint);
-
- return bitmap;
- }
-
public static void showErrorNotification(Context context, List<Account> accounts) {
NotificationManager mNotificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);