Skip to content

Commit

Permalink
Theming applied to passcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed Dec 27, 2023
1 parent 43f4b1a commit 5d48efb
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import android.view.inputmethod.InputMethodManager
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import com.nextcloud.android.common.ui.theme.utils.ColorRole
import com.nextcloud.client.di.Injectable
import com.nextcloud.client.preferences.AppPreferences
import com.owncloud.android.R
Expand Down Expand Up @@ -93,28 +92,18 @@ class PassCodeActivity : AppCompatActivity(), Injectable {
binding = PasscodelockBinding.inflate(layoutInflater)
setContentView(binding.root)

applyTint()
setupPasscodeEditTexts()
setSoftInputMode()
setupUI(savedInstanceState)
setTextListeners()
}

private fun applyTint() {
viewThemeUtils?.platform?.colorViewBackground(binding.cardViewContent, ColorRole.SURFACE_VARIANT)
viewThemeUtils?.material?.colorMaterialButtonPrimaryBorderless(binding.cancel)
}

private fun setupPasscodeEditTexts() {
passCodeEditTexts[0] = binding.txt0
passCodeEditTexts[1] = binding.txt1
passCodeEditTexts[2] = binding.txt2
passCodeEditTexts[3] = binding.txt3

passCodeEditTexts.forEach {
it?.let { viewThemeUtils?.platform?.colorEditText(it) }
}

passCodeEditTexts[0]?.requestFocus()
}

Expand Down

0 comments on commit 5d48efb

Please sign in to comment.