blob: 8660a7b2981eb25d2a1250d7b8e4a3ffd87d4a14 (
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
31
32
|
package cgeo.geocaching.ui.dialog;
import cgeo.geocaching.utils.Log;
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) {
Log.e("NoTitleDialog.onCreate", e);
}
}
}
|