Example usage for android.widget TimePicker isShown

List of usage examples for android.widget TimePicker isShown

Introduction

In this page you can find the example usage for android.widget TimePicker isShown.

Prototype

public boolean isShown() 

Source Link

Document

Returns the visibility of this view and all of its ancestors

Usage

From source file:com.finchuk.clock2.dialogs.SystemTimePickerDialog.java

@Override
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
    // http://stackoverflow.com/q/19452993/5055032
    // BUG PRE-LOLLIPOP! This is also called when the dialog is dismissed, so clicking
    // the 'Done' button will end up calling this twice!
    if (view.isShown() && mListener != null) {
        mListener.onTimeSet(view, hourOfDay, minute);
    }//from ww w . j a va 2  s.c  om
}