Skip to content

Commit dd9110c

Browse files
committed
Don't use dark theme in about page
1 parent 6373572 commit dd9110c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/tk/superl2/xwifi/AboutActivity.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import android.net.Uri
55
import android.support.v7.app.AppCompatActivity
66
import android.os.Bundle
77
import android.preference.PreferenceManager
8+
import android.support.v7.app.AppCompatDelegate
89
import android.view.View
910
import husaynhakeem.com.aboutpage.AboutPage
1011
import husaynhakeem.com.aboutpage.Item
1112

1213
class AboutActivity: AppCompatActivity() {
1314
override fun onCreate(savedInstanceState: Bundle?) {
14-
setThemeFromSharedPrefs(PreferenceManager.getDefaultSharedPreferences(this))
15+
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
1516
super.onCreate(savedInstanceState)
1617
setContentView(AboutPage(this)
1718
.setImage(R.mipmap.ic_launcher)

0 commit comments

Comments
 (0)