From ab01ae82a2ba4309309bc94dd33d616f18972c93 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 14 Mar 2017 08:15:08 +0100 Subject: set QR Code background to white --- src/main/java/de/pixart/messenger/ui/XmppActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java index 6f8e98002..ab72ad920 100644 --- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java +++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java @@ -1096,6 +1096,7 @@ public abstract class XmppActivity extends Activity { final int width = (size.x < size.y ? size.x : size.y); Bitmap bitmap = BarcodeProvider.createAztecBitmap(uri, width); ImageView view = new ImageView(this); + view.setBackgroundColor(Color.WHITE); view.setImageBitmap(bitmap); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setView(view); @@ -1261,4 +1262,4 @@ public abstract class XmppActivity extends Activity { return bitmapWorkerTaskReference.get(); } } -} \ No newline at end of file +} -- cgit v1.2.3