Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ihewro committed Aug 14, 2018
1 parent 80577fa commit 443ba58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MyDataBase {
public static boolean addExpressionRecord(Expression expression,File source){

byte[] bytes = fileToCompressedBytes(source);
if (bytes!=null){
if (bytes == null){
return false;
}else {
return addExpressionRecord(expression,bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected Boolean doInBackground(Void... voids) {
}
date.setText(text);
content.setText(this.content);
//生成截图
//生成截图
v.setDrawingCacheEnabled(true);
//measure()实际测量 自己显示在屏幕上的宽高 2个参数,int widthMeasureSpec 和 int heightMeasureSpec表示具体的测量规则。
v.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
Expand Down

0 comments on commit 443ba58

Please sign in to comment.