|
15 | 15 | import android.text.TextPaint;
|
16 | 16 | import android.text.style.*;
|
17 | 17 | import android.util.Log;
|
18 |
| -import com.jingewenku.abrahamcaijin.commonutil.application.Utils; |
| 18 | +import com.jingewenku.abrahamcaijin.commonutil.application.AppUtils; |
19 | 19 |
|
20 | 20 | import java.io.InputStream;
|
21 | 21 | import java.lang.annotation.Retention;
|
@@ -688,19 +688,19 @@ private void setSpan() {
|
688 | 688 | }
|
689 | 689 | if (imageIsBitmap || imageIsDrawable || imageIsUri || imageIsResourceId) {
|
690 | 690 | if (imageIsBitmap) {
|
691 |
| - mBuilder.setSpan(new CustomImageSpan(Utils.getContext(), bitmap, align), start, end, flag); |
| 691 | + mBuilder.setSpan(new CustomImageSpan(AppUtils.getContext(), bitmap, align), start, end, flag); |
692 | 692 | bitmap = null;
|
693 | 693 | imageIsBitmap = false;
|
694 | 694 | } else if (imageIsDrawable) {
|
695 | 695 | mBuilder.setSpan(new CustomImageSpan(drawable, align), start, end, flag);
|
696 | 696 | drawable = null;
|
697 | 697 | imageIsDrawable = false;
|
698 | 698 | } else if (imageIsUri) {
|
699 |
| - mBuilder.setSpan(new CustomImageSpan(Utils.getContext(), uri, align), start, end, flag); |
| 699 | + mBuilder.setSpan(new CustomImageSpan(AppUtils.getContext(), uri, align), start, end, flag); |
700 | 700 | uri = null;
|
701 | 701 | imageIsUri = false;
|
702 | 702 | } else {
|
703 |
| - mBuilder.setSpan(new CustomImageSpan(Utils.getContext(), resourceId, align), start, end, flag); |
| 703 | + mBuilder.setSpan(new CustomImageSpan(AppUtils.getContext(), resourceId, align), start, end, flag); |
704 | 704 | resourceId = 0;
|
705 | 705 | imageIsResourceId = false;
|
706 | 706 | }
|
|
0 commit comments