mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2024-12-25 22:52:27 +01:00
do not use the dynamic theme at widget config screen
This commit is contained in:
parent
8c4df635e9
commit
e5f01155ad
@ -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'
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user