Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Disable button instead of showing toast for null validation  #347

@ajay-prabhakar

Description

@ajay-prabhakar

Software and hardware versions

Android 9, Samsung J8

Problem description

Currently, In settings activity we are showing the toast that Name should not be empty if the length of the string equals to 0 in every EditTextPreference
Instead of showing toast, disable the positive button so, user can directly know that he did not have to enter the null value in EditText or else he/she have to click once again on preference and have to edit

Steps to reproduce the problem

Go to Settings activity
Open any editText and give a null value
observe the toast

Expected behavior

Instead of showing toast disable the positive button for editTextPreference for null validation

GIF

ezgif com-video-to-gif (1)

@opendatakit-bot claim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions