Commit 2c99352a47bfb3dc6b2ad125cfa70db14a93a5ad
1 parent
22ba8981
1 更新版本号
Showing
7 changed files
with
7 additions
and
2 deletions
config.gradle
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/frame/view/InvitFriendView.java
| @@ -2,6 +2,7 @@ package com.cnlive.strike.xiaojiaspeaker.frame.view; | @@ -2,6 +2,7 @@ package com.cnlive.strike.xiaojiaspeaker.frame.view; | ||
| 2 | 2 | ||
| 3 | import android.app.Activity; | 3 | import android.app.Activity; |
| 4 | import android.graphics.Bitmap; | 4 | import android.graphics.Bitmap; |
| 5 | +import android.graphics.BitmapFactory; | ||
| 5 | import android.net.Uri; | 6 | import android.net.Uri; |
| 6 | import android.support.v7.widget.LinearLayoutManager; | 7 | import android.support.v7.widget.LinearLayoutManager; |
| 7 | import android.view.View; | 8 | import android.view.View; |
| @@ -108,7 +109,11 @@ public class InvitFriendView implements MvpView { | @@ -108,7 +109,11 @@ public class InvitFriendView implements MvpView { | ||
| 108 | if (null == service) { | 109 | if (null == service) { |
| 109 | return; | 110 | return; |
| 110 | } | 111 | } |
| 111 | - Bitmap bitmap = service.createQRNoIconBitmap(encryptionContent, DensityUtil.dp2px(getContext(), 245)); | 112 | + Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), R.mipmap.ic_launcher); |
| 113 | + if (null == logo) { | ||
| 114 | + return; | ||
| 115 | + } | ||
| 116 | + Bitmap bitmap = service.createQrIconBitMap(encryptionContent, DensityUtil.dp2px(getContext(), 245), logo, 20); | ||
| 112 | // binding.ivQr.setBackgroundDrawable(bitmap); | 117 | // binding.ivQr.setBackgroundDrawable(bitmap); |
| 113 | if (getContext() == null) { | 118 | if (getContext() == null) { |
| 114 | return; | 119 | return; |
module_xiaojiaSoundBox/src/main/res/mipmap-hdpi/ic_launcher.png
0 → 100644
3.87 KB
module_xiaojiaSoundBox/src/main/res/mipmap-mdpi/ic_launcher.png
0 → 100644
2.94 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xhdpi/ic_launcher.png
0 → 100644
5.19 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xxhdpi/ic_launcher.png
0 → 100644
7.91 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xxxhdpi/ic_launcher.png
0 → 100644
10.6 KB