mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Android Splash Screen only displays on app start via icon click #272
This commit is contained in:
parent
e4cdeed17c
commit
5892b66eec
@ -25,9 +25,9 @@
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme"
|
||||
android:supportsRtl="true">
|
||||
|
||||
<activity
|
||||
android:name=".KiwixMobileActivity"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize|locale"
|
||||
android:name=".utils.SplashActivity"
|
||||
android:theme="@style/AppTheme.Launcher"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
@ -35,6 +35,14 @@
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".KiwixMobileActivity"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize|locale"
|
||||
android:theme="@style/AppTheme"
|
||||
android:label="@string/app_name">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
<section id="where-do-i-find-content">
|
||||
<h2>Where is the content?</h2>
|
||||
|
||||
<p>Our content is hosted on the <a href="http://kiwix.org/m/">kiwix website</a>.</p>
|
||||
<p>Our content is hosted on the kiwix website.</p>
|
||||
|
||||
<p>They are available as ZIM files. There are <strong>a lot</strong> of them:</p>
|
||||
<ul>
|
||||
|
@ -272,7 +272,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
requestWindowFeature(Window.FEATURE_PROGRESS);
|
||||
setTheme(R.style.AppTheme);
|
||||
super.onCreate(savedInstanceState);
|
||||
handleLocaleCheck();
|
||||
setContentView(R.layout.main);
|
||||
|
20
src/org/kiwix/kiwixmobile/utils/SplashActivity.java
Normal file
20
src/org/kiwix/kiwixmobile/utils/SplashActivity.java
Normal file
@ -0,0 +1,20 @@
|
||||
package org.kiwix.kiwixmobile.utils;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
|
||||
import org.kiwix.kiwixmobile.KiwixMobileActivity;
|
||||
|
||||
|
||||
public class SplashActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Intent intent = new Intent(this, KiwixMobileActivity.class);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user