Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@
android:label="@string/app_name"
android:theme="@style/Theme.XposedInstaller.Light">
<activity
android:name=".WelcomeActivity"
android:configChanges="orientation|screenSize"
android:exported="true"
android:label="@string/app_name">
android:name=".SplashActivity"
android:theme="@style/Theme.XposedInstaller.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".WelcomeActivity"
android:configChanges="orientation|screenSize"
android:exported="true"
android:label="@string/app_name" />
<activity
android:name=".DownloadDetailsActivity"
android:configChanges="orientation|screenSize"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package de.robv.android.xposed.installer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class SplashActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Clone intent to pass on filter information
// such as intent action for launcher shortcuts
Intent intent = getIntent().cloneFilter();
intent.setClass(this, WelcomeActivity.class);
startActivity(intent);
finish();
}
}
6 changes: 5 additions & 1 deletion app/src/main/res/values-v21/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
<item name="background_card_pressed">@drawable/background_card_pressed_black</item>
</style>

<style name="Theme.XposedInstaller.Transparent" parent="Theme.AppCompat.NoActionBar">
<style name="Theme.XposedInstaller.Splash" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@color/background_material_dark</item>
<item name="android:statusBarColor">@color/background_material_dark</item>
</style>

<style name="Theme.XposedInstaller.Transparent" parent="Theme.AppCompat.NoActionBar" />

</resources>
7 changes: 5 additions & 2 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@
<item name="background_card_pressed">@drawable/background_card_pressed_black</item>
</style>

<style name="Theme.XposedInstaller.Splash" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@color/background_material_dark</item>
</style>

<style name="Theme.XposedInstaller.Toolbar" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="android:textColorPrimary">@android:color/white</item>
<item name="actionMenuTextColor">@android:color/white</item>
<item name="android:textColorSecondary">@android:color/white</item>
</style>

<style name="Theme.XposedInstaller.Transparent" parent="Theme.AppCompat.NoActionBar">
</style>
<style name="Theme.XposedInstaller.Transparent" parent="Theme.AppCompat.NoActionBar" />

</resources>