Skip to content

Commit

Permalink
修复编辑图片第二次创建文字无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aaatttcccc committed Sep 9, 2022
1 parent 7b8e1db commit 401f46e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ abstract class BaseImageEditActivity extends Activity implements View.OnClickLis
@Override
protected void onCreate(Bundle savedInstanceState) {
// 默认竖型
setRequestedOrientation(getIntent().getIntExtra(EXTRA_IMAGE_SCREEN_ORIENTATION,SCREEN_ORIENTATION_PORTRAIT));
setRequestedOrientation(getIntent().getIntExtra(EXTRA_IMAGE_SCREEN_ORIENTATION, SCREEN_ORIENTATION_PORTRAIT));
StatusBarUtils.initStatusBar(BaseImageEditActivity.this);
super.onCreate(savedInstanceState);
Bitmap bitmap = getBitmap();
Expand Down Expand Up @@ -136,6 +136,8 @@ public void onTextModeClick() {
mTextDialog = new ImageTextEditDialog(this, this);
mTextDialog.setOnShowListener(this);
mTextDialog.setOnDismissListener(this);
} else {
mTextDialog.setCallback(this);
}
mTextDialog.show();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,8 @@ public interface Callback {
*/
void onText(ImageText text);
}

public void setCallback(Callback callback) {
this.mCallback = callback;
}
}

0 comments on commit 401f46e

Please sign in to comment.