Skip to content

Commit

Permalink
Dialog presenter abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
irfankhoirul committed May 30, 2017
1 parent 2566133 commit ea58585
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@
* Created by Irfan Khoirul on 12/25/2016.
*/

public abstract class BaseDialog<T extends Activity> extends DialogFragment {
public abstract class BaseDialog<T extends Activity, U extends IBasePresenter> extends DialogFragment {

protected Unbinder unbinder;
protected Activity activity;
protected AlertDialog loadingDialog;
protected View fragmentView;
protected U mPresenter;

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (mPresenter == null) {
this.dismiss();
}
}

@Nullable
@Override
Expand Down

0 comments on commit ea58585

Please sign in to comment.