Skip to content

Commit 76680ba

Browse files
committed
Fix 90% of app's lag after selecting an item + added a debug activity + reorganized app classes (pushed to experimental branch)
1 parent 264547a commit 76680ba

28 files changed

Lines changed: 1203 additions & 742 deletions

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
22
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <application android:name=".application.XApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"
3-
android:appCategory="audio" android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" android:enableOnBackInvokedCallback="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout" android:hardwareAccelerated="true" android:supportsPictureInPicture="true" android:screenOrientation="portrait"
3+
android:appCategory="audio" android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" android:enableOnBackInvokedCallback="true" android:theme="@style/AppTheme"> <activity android:name=".activity.MainActivity" android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout" android:hardwareAccelerated="true" android:supportsPictureInPicture="true" android:screenOrientation="portrait"
44
android:theme="@style/AppTheme"
55
android:windowSoftInputMode="adjustResize"
66
android:exported="true">
@@ -15,4 +15,9 @@
1515
android:theme="@style/AppTheme"
1616
android:windowSoftInputMode="adjustPan"
1717
android:exported="true">
18-
</activity> <uses-library android:name="org.apache.http.legacy" android:required="false" /> <service android:name="com.xapps.media.xmusic.service.PlayerService" android:enabled="true" android:exported="true" android:foregroundServiceType="mediaPlayback"> <intent-filter> <action android:exported="true" android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </service> <receiver android:name="androidx.media3.session.MediaButtonReceiver" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </receiver> </application></manifest>
18+
</activity>
19+
<activity android:name=".activity.WelcomeActivity" android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout" android:hardwareAccelerated="true" android:supportsPictureInPicture="true" android:screenOrientation="portrait"
20+
android:theme="@style/AppTheme"
21+
android:windowSoftInputMode="adjustPan"
22+
android:exported="true">
23+
</activity> <uses-library android:name="org.apache.http.legacy" android:required="false" /> <service android:name="com.xapps.media.xmusic.service.PlayerService" android:enabled="true" android:exported="true" android:foregroundServiceType="mediaPlayback"> <intent-filter> <action android:exported="true" android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </service> <receiver android:name="androidx.media3.session.MediaButtonReceiver" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </receiver> </application></manifest>

0 commit comments

Comments
 (0)