Skip to content

Commit

Permalink
Code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
WSTxda committed Sep 19, 2024
1 parent a27c83e commit 6d0742f
Show file tree
Hide file tree
Showing 15 changed files with 366 additions and 48 deletions.
318 changes: 318 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
android:icon="@mipmap/ic_launcher_weather"
android:label="@string/weather"
android:noHistory="true"
android:theme="@style/Theme.Transparent">
android:theme="@style/AppTheme.Transparent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -58,7 +58,7 @@
android:icon="@mipmap/ic_launcher_assistant"
android:label="@string/assistant"
android:noHistory="true"
android:theme="@style/Theme.Transparent">
android:theme="@style/AppTheme.Transparent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -73,23 +73,23 @@
android:icon="@mipmap/ic_launcher_password"
android:label="@string/password"
android:noHistory="true"
android:theme="@style/Theme.Transparent">
android:theme="@style/AppTheme.Transparent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name="com.wstxda.gsl.shortcut.GameActivity"
android:name="com.wstxda.gsl.shortcut.GamesActivity"
android:enableOnBackInvokedCallback="true"
android:excludeFromRecents="true"
android:exported="true"
android:finishOnTaskLaunch="true"
android:icon="@mipmap/ic_launcher_game"
android:label="@string/games"
android:noHistory="true"
android:theme="@style/Theme.Transparent"
android:theme="@style/AppTheme.Transparent"
tools:targetApi="tiramisu">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -109,7 +109,7 @@
android:icon="@mipmap/ic_launcher_music"
android:label="@string/music_search"
android:noHistory="true"
android:theme="@style/Theme.Transparent">
android:theme="@style/AppTheme.Transparent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import androidx.preference.SwitchPreferenceCompat
import com.wstxda.gsl.shortcut.AssistantActivity
import com.wstxda.gsl.shortcut.GameActivity
import com.wstxda.gsl.shortcut.GamesActivity
import com.wstxda.gsl.shortcut.MusicSearchActivity
import com.wstxda.gsl.shortcut.PasswordManagerActivity
import com.wstxda.gsl.R
Expand All @@ -24,7 +24,7 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() {
setupPreference("assistant_activity", AssistantActivity::class.java)
setupPreference("weather_activity", WeatherActivity::class.java)
setupPreference("password_manager_activity", PasswordManagerActivity::class.java)
setupPreference("game_activity", GameActivity::class.java)
setupPreference("game_activity", GamesActivity::class.java)
setupPreference("music_search_activity", MusicSearchActivity::class.java)
setupPreference("settings_activity", SettingsActivity::class.java)
setupLinkPreference("developer", "https://github.com/WSTxda")
Expand Down
Loading

0 comments on commit 6d0742f

Please sign in to comment.