diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java index f3faf93..9dae7d1 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java @@ -123,8 +123,11 @@ public class MainActivity extends ActionBarActivity { boolean copySavedConfiguration = savedConfiguration = savedInstanceState != null && savedInstanceState.getBoolean(AppConstants.SAVED_CONFIG_KEY); - switchFragment(); - updateSwipeHandler(); + String deviceType = getResources().getString(R.string.device_type); + if ("Plain".equals(deviceType)) { + switchFragment(); + updateSwipeHandler(); + } if (!copySavedConfiguration && HelperUtils.checkForLocalicatonEnabled(this)) return; } diff --git a/app/src/main/res/layout/activity_main_two_frag.xml b/app/src/main/res/layout-sw600dp/activity_main.xml similarity index 97% rename from app/src/main/res/layout/activity_main_two_frag.xml rename to app/src/main/res/layout-sw600dp/activity_main.xml index 8b38205..a9d4684 100644 --- a/app/src/main/res/layout/activity_main_two_frag.xml +++ b/app/src/main/res/layout-sw600dp/activity_main.xml @@ -2,6 +2,7 @@ - + - + - + - + + + - - - + diff --git a/app/src/main/res/values-sw600dp/tech.xml b/app/src/main/res/values-sw600dp/tech.xml new file mode 100644 index 0000000..34a6baa --- /dev/null +++ b/app/src/main/res/values-sw600dp/tech.xml @@ -0,0 +1,4 @@ + + + 600 + \ No newline at end of file diff --git a/app/src/main/res/values-sw720dp/tech.xml b/app/src/main/res/values-sw720dp/tech.xml new file mode 100644 index 0000000..eb42eca --- /dev/null +++ b/app/src/main/res/values-sw720dp/tech.xml @@ -0,0 +1,4 @@ + + + 720 + \ No newline at end of file diff --git a/app/src/main/res/values/tech.xml b/app/src/main/res/values/tech.xml new file mode 100644 index 0000000..3f92b7e --- /dev/null +++ b/app/src/main/res/values/tech.xml @@ -0,0 +1,4 @@ + + + Plain + \ No newline at end of file