diff options
author | Christian Schneppe <kriztan@users.noreply.github.com> | 2017-03-14 08:15:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 08:15:08 +0100 |
commit | ab01ae82a2ba4309309bc94dd33d616f18972c93 (patch) | |
tree | 0686a1648a83d5cf9a187ce1bb70304a7db246d7 /src/main | |
parent | 5b7f12c7bfdce53b513dde08a633db84c5a20063 (diff) |
set QR Code background to white
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/XmppActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 +} |