updated javadoc comments

This commit is contained in:
Agent-8 2017-12-27 09:48:22 -05:00 committed by GitHub
parent 4e82808591
commit c606f5193f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ import android.view.WindowManager;
/**
* a formatted dialog fragment
* This class is used by NearbyInfoDialog
*/
public abstract class OverlayDialog extends DialogFragment {
@ -27,7 +28,8 @@ public abstract class OverlayDialog extends DialogFragment {
}
/**
* allows subclasses to initialize themselves if needed
* When the view is created, sets the dialog layout to full screen
*
* @param view the view being used
* @param savedInstanceState bundle re-constructed from a previous saved state
*/
@ -50,6 +52,12 @@ public abstract class OverlayDialog extends DialogFragment {
window.setAttributes(wlp);
}
/**
* builds custom dialog container
*
* @param savedInstanceState the previously saved state
* @return the dialog
*/
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
@ -58,4 +66,4 @@ public abstract class OverlayDialog extends DialogFragment {
window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
return dialog;
}
}
}