Revision c02fa107
Added by Leszek Koltunski almost 3 years ago
| src/main/java/org/distorted/dialogs/RubikDialogBandagedDelete.java | ||
|---|---|---|
| 11 | 11 |
|
| 12 | 12 |
import android.app.Dialog; |
| 13 | 13 |
import android.content.DialogInterface; |
| 14 |
import android.os.Bundle; |
|
| 15 | 14 |
import android.util.TypedValue; |
| 16 | 15 |
import android.view.View; |
| 17 | 16 |
import android.widget.Button; |
| ... | ... | |
| 41 | 40 |
|
| 42 | 41 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 43 | 42 |
|
| 44 |
public void setPositive(AlertDialog.Builder builder)
|
|
| 43 |
public boolean hasArgument()
|
|
| 45 | 44 |
{
|
| 46 |
Bundle args = getArguments();
|
|
| 47 |
String name;
|
|
| 45 |
return true;
|
|
| 46 |
}
|
|
| 48 | 47 |
|
| 49 |
try |
|
| 50 |
{
|
|
| 51 |
name = args.getString("name");
|
|
| 52 |
} |
|
| 53 |
catch(Exception e) |
|
| 54 |
{
|
|
| 55 |
name = ""; |
|
| 56 |
} |
|
| 57 |
final String objectName = name; |
|
| 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 49 |
|
|
| 50 |
public void setPositive(AlertDialog.Builder builder) |
|
| 51 |
{
|
|
| 52 |
final String objectName = mArgument; |
|
| 58 | 53 |
|
| 59 | 54 |
builder.setPositiveButton( R.string.yes, new DialogInterface.OnClickListener() |
| 60 | 55 |
{
|
| ... | ... | |
| 93 | 88 |
|
| 94 | 89 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 95 | 90 |
|
| 96 |
public void prepareBody(View view, FragmentActivity act, float size) |
|
| 91 |
public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size)
|
|
| 97 | 92 |
{
|
| 98 | 93 |
TextView save = view.findViewById(R.id.delete_object_text); |
| 99 | 94 |
save.setTextSize(TypedValue.COMPLEX_UNIT_PX, size); |
Also available in: Unified diff
Continue unifying all the dialogs under one RubikDialogAbstract.