properly color the Check icon at the pin tab

This commit is contained in:
tibbi 2017-08-02 23:25:11 +02:00
parent f269c70e56
commit 53948f8d90

View file

@ -1,11 +1,13 @@
package com.simplemobiletools.gallery.views
import android.content.Context
import android.graphics.PorterDuff
import android.util.AttributeSet
import android.widget.RelativeLayout
import com.simplemobiletools.commons.extensions.toast
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.gallery.R
import com.simplemobiletools.gallery.extensions.config
import com.simplemobiletools.gallery.helpers.PROTECTION_PIN
import com.simplemobiletools.gallery.interfaces.HashListener
import com.simplemobiletools.gallery.interfaces.SecurityTab
@ -36,6 +38,7 @@ class PinTab(context: Context, attrs: AttributeSet) : RelativeLayout(context, at
pin_9.setOnClickListener { addNumber("9") }
pin_c.setOnClickListener { clear() }
pin_ok.setOnClickListener { confirmPIN() }
pin_ok.setColorFilter(context.config.textColor, PorterDuff.Mode.SRC_IN)
}
override fun initTab(requiredHash: String, listener: HashListener) {