From d526f083ea9c9ebc08c7d6ca54ab7e69841eeb31 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 21 Nov 2013 09:10:05 +0100 Subject: Fix log window in landscape --- res/layout/log_window.xml | 22 +++++++--------------- src/de/blinkt/openvpn/LogWindow.java | 7 +++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/res/layout/log_window.xml b/res/layout/log_window.xml index c814e729..56c3e349 100644 --- a/res/layout/log_window.xml +++ b/res/layout/log_window.xml @@ -1,15 +1,7 @@ - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/de/blinkt/openvpn/LogWindow.java b/src/de/blinkt/openvpn/LogWindow.java index 843f85cc..641b2416 100644 --- a/src/de/blinkt/openvpn/LogWindow.java +++ b/src/de/blinkt/openvpn/LogWindow.java @@ -3,6 +3,7 @@ package de.blinkt.openvpn; import android.app.Activity; import android.os.Bundle; import android.view.MenuItem; +import de.blinkt.openvpn.fragments.LogFragment; /** * Created by arne on 13.10.13. @@ -14,6 +15,12 @@ public class LogWindow extends Activity { setContentView(R.layout.log_window); getActionBar().setDisplayHomeAsUpEnabled(true); + if (savedInstanceState == null) { + getFragmentManager().beginTransaction() + .add(R.id.container, new LogFragment()) + .commit(); + } + } -- cgit v1.2.3