Skip to content

Commit

Permalink
根据 #55 提供的bug修复
Browse files Browse the repository at this point in the history
原因是在上次的优化内存更新底部控件后,如果处于单摄像的情况下,会导致null奔溃
  • Loading branch information
aaatttcccc committed Aug 22, 2022
1 parent 5b3a86a commit c2df387
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ public void finish() {

@Override
protected void onDestroy() {
if (mLayoutMediator != null) {
mLayoutMediator.detach();
}
super.onDestroy();
mLayoutMediator.detach();
}

@Override
Expand Down

0 comments on commit c2df387

Please sign in to comment.