Revision 4235de9b
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikDialogAbout.java | ||
---|---|---|
28 | 28 |
import android.support.v7.app.AppCompatDialogFragment; |
29 | 29 |
import android.view.LayoutInflater; |
30 | 30 |
import android.view.View; |
31 |
import android.view.Window; |
|
32 |
import android.view.WindowManager; |
|
31 | 33 |
import android.widget.TextView; |
32 | 34 |
|
33 | 35 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
34 | 36 |
|
35 | 37 |
public class RubikDialogAbout extends AppCompatDialogFragment |
36 | 38 |
{ |
39 |
@Override |
|
40 |
public void onStart() |
|
41 |
{ |
|
42 |
super.onStart(); |
|
43 |
|
|
44 |
Window window = getDialog().getWindow(); |
|
45 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
46 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
47 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
48 |
} |
|
49 |
|
|
50 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
51 |
|
|
37 | 52 |
@NonNull |
38 | 53 |
@Override |
39 | 54 |
public Dialog onCreateDialog(Bundle savedInstanceState) |
... | ... | |
43 | 58 |
AlertDialog.Builder builder = new AlertDialog.Builder(act); |
44 | 59 |
|
45 | 60 |
TextView tv = (TextView) inflater.inflate(R.layout.dialog_title, null); |
46 |
tv.setText(R.string.about_title);
|
|
61 |
tv.setText(R.string.about); |
|
47 | 62 |
builder.setCustomTitle(tv); |
48 | 63 |
|
49 | 64 |
builder.setCancelable(true); |
Also available in: Unified diff
Major rearrangement of the UI.