Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Pressed Text Color is shown instead of Text Color when fragment is popped from backstack #9

Description

@azri92

Snippet in SignInFragment.kt

        val signUpText = SimpleText.from(signUpTextView.text)
        signUpText.apply {
            first(getString(R.string.sign_up)
            textColor(R.color.blue)
            underline()
            pressedTextColor(R.color.red)
            onClick(signUpTextView) { _, _, _ ->
                fragmentManager?.let {
                    goToRegisterFragment()
                }
            }
        }
        signUpTextView.text = signUpText

Reproduction:

  1. TextView has text "New user? Sign up".
  2. Click "Sign up" and a new fragment is shown.
  3. Click back, and SignInFragment is popped from backstack.
  4. "Sign up" shows as red color instead of blue.

Happens on:

  • Samsung J1 Ace (Android 5.1.1)
  • OnePlus One (Android 6.0.1)

Does not happen on Xiaomi Mi5 (Android 7.0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions