Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Aug 22, 2019
1 parent 52df5c8 commit f11f792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/src/main/assets/updateLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
### 捐赠里点击红包搜索码可开启高级功能!
**近期一些基于阅读的修改版不开放源代码,不声明原作者与网站,严重违反了开源协议,希望大家一起抵制这种行为!**

**2019/08/22**
* 给扩展到刘海屏加了个开关

**2019/08/21**
* 修复一些bug
* 口袋阅书架可以显示了
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected void onCreate(Bundle savedInstanceState) {
protected void onCreateActivity() {
setOrientation(readBookControl.getScreenDirection());
setContentView(R.layout.activity_book_read);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && readBookControl.getToLh()) {
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
Expand Down

0 comments on commit f11f792

Please sign in to comment.