From eb89007326fdcb8dde295634f2d5f0f72323b939 Mon Sep 17 00:00:00 2001 From: RicomenPL Date: Thu, 20 Jul 2017 19:19:56 +0200 Subject: [PATCH] Add support for support libraries --- app/src/main/AndroidManifest.xml | 7 ++++--- .../io/github/wulkanowy/activity/main/MainActivity.java | 4 ++-- .../github/wulkanowy/activity/started/StartedActivity.java | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b7653f1a3..1eed1bd1e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,7 +15,8 @@ + android:theme="@style/Theme.AppCompat.NoActionBar" + android:configChanges="orientation|screenSize"> @@ -25,11 +26,11 @@ + android:configChanges="orientation|screenSize"/> + android:configChanges="orientation|screenSize"/> \ No newline at end of file diff --git a/app/src/main/java/io/github/wulkanowy/activity/main/MainActivity.java b/app/src/main/java/io/github/wulkanowy/activity/main/MainActivity.java index f63c0840d..bb1f165d6 100644 --- a/app/src/main/java/io/github/wulkanowy/activity/main/MainActivity.java +++ b/app/src/main/java/io/github/wulkanowy/activity/main/MainActivity.java @@ -1,9 +1,9 @@ package io.github.wulkanowy.activity.main; -import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; @@ -14,7 +14,7 @@ import java.util.LinkedHashMap; import io.github.wulkanowy.R; -public class MainActivity extends Activity { +public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { diff --git a/app/src/main/java/io/github/wulkanowy/activity/started/StartedActivity.java b/app/src/main/java/io/github/wulkanowy/activity/started/StartedActivity.java index 241d832ba..2c4c931a9 100644 --- a/app/src/main/java/io/github/wulkanowy/activity/started/StartedActivity.java +++ b/app/src/main/java/io/github/wulkanowy/activity/started/StartedActivity.java @@ -1,11 +1,11 @@ package io.github.wulkanowy.activity.started; -import android.app.Activity; import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; import io.github.wulkanowy.R; -public class StartedActivity extends Activity { +public class StartedActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {