summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2016-12-30 20:04:42 +0100
committerGitHub <noreply@github.com>2016-12-30 20:04:42 +0100
commit3a32db36b8104e167a9fd2829b5306aa62c5e9f7 (patch)
tree59f1a062e38049e3d551a9e638ea5558d9a7ea71 /app
parent27bbe3ae80d9773a53e8e56dbb8990a8003489d7 (diff)
parent234caf3cd59cfec2af0edf6101aafa4b68f6d7de (diff)
downloadAntennaPod-3a32db36b8104e167a9fd2829b5306aa62c5e9f7.zip
Merge pull request #2201 from VarunBarad/develop
Add launch screen.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/AndroidManifest.xml11
-rw-r--r--app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java23
2 files changed, 32 insertions, 2 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index af7ac2335..2049b6bae 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -42,16 +42,23 @@
android:value="AEdPqrEAAAAI3a05VToCTlqBymJrbFGaKQMvF-bBAuLsOdavBA"/>
<activity
- android:name=".activity.MainActivity"
+ android:name=".activity.SplashActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTask"
- android:label="@string/app_name">
+ android:label="@string/app_name"
+ android:theme="@style/Theme.AntennaPod.Dark.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
+ android:name=".activity.MainActivity"
+ android:configChanges="keyboardHidden|orientation|screenSize"
+ android:launchMode="singleTask"
+ android:label="@string/app_name">
+ </activity>
+ <activity
android:name=".activity.AudioplayerActivity"
android:launchMode="singleTop">
<meta-data
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java
new file mode 100644
index 000000000..b92ac8577
--- /dev/null
+++ b/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java
@@ -0,0 +1,23 @@
+package de.danoeh.antennapod.activity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v7.app.AppCompatActivity;
+
+/**
+ * Creator: vbarad
+ * Date: 2016-12-03
+ * Project: AntennaPod
+ */
+
+public class SplashActivity extends AppCompatActivity {
+ @Override
+ protected void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ Intent intent = new Intent(this, MainActivity.class);
+ startActivity(intent);
+ finish();
+ }
+}