Skip to content

Commit 0d033de

Browse files
committed
Reduce Android deprecation warnings
1 parent 9b3b733 commit 0d033de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

jme3-android/src/main/java/com/jme3/system/android/JmeAndroidSystem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void writeImageFile(OutputStream outStream, String format, ByteBuffer ima
7878

7979

8080
@Override
81+
@SuppressWarnings("deprecation")
8182
public JmeContext newContext(AppSettings settings, Type contextType) {
8283
if (settings.getAudioRenderer() == null) {
8384
audioRendererType = null;

jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ public void requestDialog(
711711
public void run() {
712712
final FrameLayout layoutTextDialogInput = new FrameLayout(view.getContext());
713713
final EditText editTextDialogInput = new EditText(view.getContext());
714-
editTextDialogInput.setWidth(LayoutParams.FILL_PARENT);
715-
editTextDialogInput.setHeight(LayoutParams.FILL_PARENT);
714+
editTextDialogInput.setWidth(LayoutParams.MATCH_PARENT);
715+
editTextDialogInput.setHeight(LayoutParams.MATCH_PARENT);
716716
editTextDialogInput.setPadding(20, 20, 20, 20);
717717
editTextDialogInput.setGravity(Gravity.FILL_HORIZONTAL);
718718
//editTextDialogInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);

0 commit comments

Comments
 (0)