From dd9110c5597f1c9d786ba91da9ee7d48ee827dcd Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 15 Apr 2018 19:45:12 +1000 Subject: [PATCH] Don't use dark theme in about page --- app/src/main/java/tk/superl2/xwifi/AboutActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/tk/superl2/xwifi/AboutActivity.kt b/app/src/main/java/tk/superl2/xwifi/AboutActivity.kt index 1e61ff7..90c61af 100644 --- a/app/src/main/java/tk/superl2/xwifi/AboutActivity.kt +++ b/app/src/main/java/tk/superl2/xwifi/AboutActivity.kt @@ -5,13 +5,14 @@ import android.net.Uri import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.preference.PreferenceManager +import android.support.v7.app.AppCompatDelegate import android.view.View import husaynhakeem.com.aboutpage.AboutPage import husaynhakeem.com.aboutpage.Item class AboutActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { - setThemeFromSharedPrefs(PreferenceManager.getDefaultSharedPreferences(this)) + AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) super.onCreate(savedInstanceState) setContentView(AboutPage(this) .setImage(R.mipmap.ic_launcher)