blob: fc5ebe67fd226cd05133fefd39cf79d6cd0241f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package cgeo.geocaching.ui.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;
public abstract class NoTitleDialog extends Dialog {
public NoTitleDialog(Context context) {
super(context);
}
public NoTitleDialog(Context context, int theme) {
super(context, theme);
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
} catch (final Exception e) {
// nothing
}
}
}
|