|
|
|
@ -1,8 +1,6 @@ |
|
|
|
|
package io.legado.app.lib.theme.view |
|
|
|
|
|
|
|
|
|
import android.annotation.TargetApi |
|
|
|
|
import android.content.Context |
|
|
|
|
import android.os.Build |
|
|
|
|
import android.util.AttributeSet |
|
|
|
|
import android.widget.ProgressBar |
|
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
@ -11,25 +9,7 @@ import io.legado.app.lib.theme.ThemeStore |
|
|
|
|
/** |
|
|
|
|
* @author Aidan Follestad (afollestad) |
|
|
|
|
*/ |
|
|
|
|
class ATEProgressBar : ProgressBar { |
|
|
|
|
|
|
|
|
|
constructor(context: Context) : super(context) |
|
|
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) |
|
|
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super( |
|
|
|
|
context, |
|
|
|
|
attrs, |
|
|
|
|
defStyleAttr |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
@TargetApi(Build.VERSION_CODES.LOLLIPOP) |
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super( |
|
|
|
|
context, |
|
|
|
|
attrs, |
|
|
|
|
defStyleAttr, |
|
|
|
|
defStyleRes |
|
|
|
|
) |
|
|
|
|
class ATEProgressBar(context: Context, attrs: AttributeSet) : ProgressBar(context, attrs) { |
|
|
|
|
|
|
|
|
|
init { |
|
|
|
|
ATH.setTint(this, ThemeStore.accentColor(context)) |
|
|
|
|