|
|
@ -276,7 +276,7 @@ public class ReadActivity extends BaseActivity { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (SharedPreUtils.getInstance().getBoolean(getString(R.string.isNightFS), false)) { |
|
|
|
if (SharedPreUtils.getInstance().getBoolean(getString(R.string.isNightFS), false)) { |
|
|
|
mSetting.setDayStyle(!ColorUtil.isColorLight(getColor(R.color.textPrimary))); |
|
|
|
mSetting.setDayStyle(!ColorUtil.isColorLight(getResources().getColor(R.color.textPrimary))); |
|
|
|
} |
|
|
|
} |
|
|
|
//息屏时间
|
|
|
|
//息屏时间
|
|
|
|
screenTimeOut = mSetting.getResetScreen() * 60; |
|
|
|
screenTimeOut = mSetting.getResetScreen() * 60; |
|
|
@ -473,6 +473,7 @@ public class ReadActivity extends BaseActivity { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean onKeyDown(int keyCode, KeyEvent event) { |
|
|
|
public boolean onKeyDown(int keyCode, KeyEvent event) { |
|
|
|
boolean isVolumeTurnPage = SysManager.getSetting().isVolumeTurnPage(); |
|
|
|
boolean isVolumeTurnPage = SysManager.getSetting().isVolumeTurnPage(); |
|
|
|
|
|
|
|
if (readAblTopMenu.getVisibility() != View.VISIBLE) { |
|
|
|
switch (keyCode) { |
|
|
|
switch (keyCode) { |
|
|
|
case KeyEvent.KEYCODE_VOLUME_UP: |
|
|
|
case KeyEvent.KEYCODE_VOLUME_UP: |
|
|
|
if (isVolumeTurnPage) { |
|
|
|
if (isVolumeTurnPage) { |
|
|
@ -483,6 +484,7 @@ public class ReadActivity extends BaseActivity { |
|
|
|
return mPageLoader.skipToNextPage(); |
|
|
|
return mPageLoader.skipToNextPage(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return super.onKeyDown(keyCode, event); |
|
|
|
return super.onKeyDown(keyCode, event); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|