Skip to content

don't show text on api 23 #33

Description

@karimi12

i have a strange problem :
i have button in a activity and a function for onClick event

fun sendComment(view: View): Unit {

    Sneaker.with(this) // Activity, Fragment or ViewGroup
            .setTitle("Warning!!")
            .setMessage("This is the warning message")
            .sneakWarning()

    Toast.makeText(this,"show",Toast.LENGTH_LONG).show()
}

Toast show correct but Sneaker don't show!!

but i have a other Sneaker on onCreate activity function It is displayed correctly

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_contact)
        val typeface= Typeface.createFromAsset(assets,getString(R.string.font_path))
        _tv_name.typeface = typeface
        _tv_phone_number.typeface = typeface
        _tv_comment.typeface = typeface
        _tl_comment.typeface = typeface
        _tl_phone_number.typeface = typeface
        _tl_name.typeface = typeface

        Sneaker.with(this) // Activity, Fragment or ViewGroup
                .setTitle("Warning!!")
                .setMessage("This is the warning message")
                .sneakWarning()
       }

i test it on genymotion samsung S7 and Samsung S5

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