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 --- src/de/blinkt/openvpn/LogWindow.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/de/blinkt/openvpn') 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