Skip to content

Commit 3b70008

Browse files
author
371718330@qq.com
committed
修改工具类
1 parent 33cf3e1 commit 3b70008

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil/SpannableStringUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import android.text.TextPaint;
1616
import android.text.style.*;
1717
import android.util.Log;
18-
import com.jingewenku.abrahamcaijin.commonutil.application.Utils;
18+
import com.jingewenku.abrahamcaijin.commonutil.application.AppUtils;
1919

2020
import java.io.InputStream;
2121
import java.lang.annotation.Retention;
@@ -688,19 +688,19 @@ private void setSpan() {
688688
}
689689
if (imageIsBitmap || imageIsDrawable || imageIsUri || imageIsResourceId) {
690690
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);
692692
bitmap = null;
693693
imageIsBitmap = false;
694694
} else if (imageIsDrawable) {
695695
mBuilder.setSpan(new CustomImageSpan(drawable, align), start, end, flag);
696696
drawable = null;
697697
imageIsDrawable = false;
698698
} 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);
700700
uri = null;
701701
imageIsUri = false;
702702
} 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);
704704
resourceId = 0;
705705
imageIsResourceId = false;
706706
}

0 commit comments

Comments
 (0)