do not use the dynamic theme at widget config screen

This commit is contained in:
tibbi 2017-11-29 22:39:39 +01:00
parent 8c4df635e9
commit e5f01155ad
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:3.0.0' implementation 'com.simplemobiletools:commons:3.0.3'
implementation 'me.grantland:autofittextview:0.2.1' implementation 'me.grantland:autofittextview:0.2.1'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'

View File

@ -5,7 +5,6 @@ import android.appwidget.AppWidgetManager
import android.content.Intent import android.content.Intent
import android.graphics.Color import android.graphics.Color
import android.os.Bundle import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button import android.widget.Button
import android.widget.RemoteViews import android.widget.RemoteViews
import android.widget.SeekBar import android.widget.SeekBar
@ -19,7 +18,7 @@ import com.simplemobiletools.commons.extensions.setBackgroundColor
import kotlinx.android.synthetic.main.activity_main.* import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.android.synthetic.main.widget_config.* import kotlinx.android.synthetic.main.widget_config.*
class WidgetConfigureActivity : AppCompatActivity() { class WidgetConfigureActivity : SimpleActivity() {
private var mBgColor = 0 private var mBgColor = 0
private var mBgColorWithoutTransparency = 0 private var mBgColorWithoutTransparency = 0
private var mWidgetId = 0 private var mWidgetId = 0
@ -27,6 +26,7 @@ class WidgetConfigureActivity : AppCompatActivity() {
private var mBgAlpha = 0f private var mBgAlpha = 0f
public override fun onCreate(savedInstanceState: Bundle?) { public override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setResult(Activity.RESULT_CANCELED) setResult(Activity.RESULT_CANCELED)
setContentView(R.layout.widget_config) setContentView(R.layout.widget_config)