2022-10-02 23:06:56 +02:00
|
|
|
package android.app;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
2023-08-23 09:16:45 +02:00
|
|
|
import android.content.DialogInterface.OnCancelListener;
|
|
|
|
|
import android.content.DialogInterface.OnDismissListener;
|
|
|
|
|
import android.view.View;
|
2022-10-02 23:06:56 +02:00
|
|
|
|
|
|
|
|
public class Dialog {
|
2023-08-23 09:16:45 +02:00
|
|
|
|
|
|
|
|
private Context context;
|
|
|
|
|
|
|
|
|
|
public Dialog(Context context, int themeResId) {
|
|
|
|
|
this.context = context;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public final boolean requestWindowFeature(int featureId) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Context getContext() {
|
|
|
|
|
return context;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setContentView(View view) {}
|
|
|
|
|
|
|
|
|
|
public void setOwnerActivity(Activity activity) {}
|
|
|
|
|
|
|
|
|
|
public void setCancelable(boolean cancelable) {}
|
|
|
|
|
|
|
|
|
|
public void setOnCancelListener(OnCancelListener onCancelListener) {}
|
|
|
|
|
|
|
|
|
|
public void setOnDismissListener(OnDismissListener onDismissListener) {}
|
|
|
|
|
|
2022-10-02 23:06:56 +02:00
|
|
|
public void show() {
|
2023-06-22 11:45:46 +02:00
|
|
|
System.out.println("totally showing the Dialog " + this + " right now, most definitely doing that");
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void dismiss() {
|
2023-06-22 11:45:46 +02:00
|
|
|
System.out.println("totally dismissing the Dialog " + this + " right now, which was most definitely being shown just a moment ago");
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Builder {
|
2023-06-22 11:45:46 +02:00
|
|
|
public Builder(Context context) {
|
2022-10-02 23:06:56 +02:00
|
|
|
System.out.println("making a Dialog$Builder as we speak, my word!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|