Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Aug 6, 2018
1 parent df14cc5 commit c707683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LPhotoPickerPreviewActivity : LBaseActivity() {
override fun getThemeId(): Int = intent.getIntExtra(EXTRA_THEME, R.style.LPhotoTheme)

override fun initView(savedInstanceState: Bundle?) {
window.setBackgroundDrawable(ColorDrawable(getColor(R.color.l_pp_photo_preview_bg)))
window.setBackgroundDrawable(ColorDrawable(resources.getColor(R.color.l_pp_photo_preview_bg)))
initAttr()
setStatusBar()
checkBox.setChecked(true, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class LPreviewItemFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
view.photoView.setOnPhotoTapListener { _, _, _ ->
if (System.currentTimeMillis() - mLastShowHiddenTime > 500) {
if (System.currentTimeMillis() - mLastShowHiddenTime > 300) {
mLastShowHiddenTime = System.currentTimeMillis()

if (context is LPhotoPickerPreviewActivity) {
val activity = context as LPhotoPickerPreviewActivity
if (mContext is LPhotoPickerPreviewActivity) {
val activity = mContext as LPhotoPickerPreviewActivity
activity.changeToolBar()
}
}
Expand Down

0 comments on commit c707683

Please sign in to comment.