1 |
e1637420
|
leszek
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
// Copyright 2024 Leszek Koltunski //
|
3 |
|
|
// //
|
4 |
|
|
// This file is part of Magic Cube. //
|
5 |
|
|
// //
|
6 |
|
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7 |
|
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9 |
|
|
|
10 |
|
|
package org.distorted.dialogs;
|
11 |
|
|
|
12 |
|
|
import android.app.Dialog;
|
13 |
|
|
import android.view.View;
|
14 |
|
|
import android.widget.TextView;
|
15 |
|
|
|
16 |
|
|
import androidx.fragment.app.FragmentActivity;
|
17 |
|
|
|
18 |
|
|
import org.distorted.main.R;
|
19 |
|
|
|
20 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
21 |
|
|
|
22 |
|
|
public class RubikDialogMessage extends RubikDialogAbstract
|
23 |
|
|
{
|
24 |
|
|
public int getResource() { return R.layout.dialog_message; }
|
25 |
|
|
public int getTitleResource() { return -1; }
|
26 |
|
|
public boolean hasArgument() { return true; }
|
27 |
|
|
public int getPositive() { return R.string.ok; }
|
28 |
|
|
public int getNegative() { return -1; }
|
29 |
|
|
public void negativeAction() { }
|
30 |
|
|
public void positiveAction() { }
|
31 |
|
|
|
32 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
33 |
|
|
|
34 |
|
|
public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size)
|
35 |
|
|
{
|
36 |
|
|
TextView mess = view.findViewById(R.id.dialog_message);
|
37 |
|
|
mess.setText(mArgument);
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
41 |
|
|
|
42 |
|
|
public static String getDialogTag()
|
43 |
|
|
{
|
44 |
|
|
return "DialogBandageMessage";
|
45 |
|
|
}
|
46 |
|
|
}
|