feat: 优化代码

pull/141/head
kunfei 5 years ago
parent dda8ac997f
commit 10a338609d
  1. 2
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt

@ -2,7 +2,6 @@ package io.legado.app.ui.config
import android.content.SharedPreferences
import android.os.Bundle
import android.os.Handler
import android.view.View
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
@ -177,7 +176,6 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), SharedPreferences.OnShar
private fun recreateActivities() {
postEvent(EventBus.RECREATE, "")
Handler().postDelayed({ activity?.recreate() }, 100L)
}
}
Loading…
Cancel
Save