Compare commits

...

6 Commits

Author SHA1 Message Date
Kelvin K efe074d272 menu bar contrast removal 2025-11-27 10:38:19 -06:00
Kelvin K 8a9efd3a0f Merge branch 'master' of gitlab.futo.org:videostreaming/grayjay 2025-11-27 10:30:09 -06:00
Kelvin K 251302b9c3 Fix back behavior for Android 16 2025-11-27 10:29:55 -06:00
Koen J 5cdac1405e Reverted javet for compat with android 9. 2025-11-27 17:08:27 +01:00
Koen J 565ea7cb8b Merge branch 'master' of gitlab.futo.org:videostreaming/grayjay 2025-11-27 13:41:55 +01:00
Koen J 9fa3e22d2e Crash fixes related to remoteLast. 2025-11-27 13:41:21 +01:00
6 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ dependencies {
implementation 'com.google.code.gson:gson:2.13.2' //Used for complex/anonymous cases like during development conversions (eg. V8RemoteObject)
//JS
implementation 'com.caoccao.javet:javet-v8-android:5.0.1'
implementation 'com.caoccao.javet:javet-v8-android:4.1.5'
//Exoplayer
implementation 'androidx.media3:media3-exoplayer:1.8.0'
+2
View File
@@ -29,6 +29,8 @@
android:supportsRtl="true"
android:theme="@style/Theme.FutoVideo"
android:usesCleartextTraffic="true"
tools:replace="android:enableOnBackInvokedCallback"
android:enableOnBackInvokedCallback="false"
tools:targetApi="31"
android:largeHeap="true">
<provider
@@ -8,6 +8,7 @@ import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.graphics.Color
import android.net.Uri
import android.os.Build
import android.os.Bundle
@@ -332,6 +333,10 @@ class MainActivity : AppCompatActivity, IWithResultLauncher {
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
window.isNavigationBarContrastEnforced = false
}
//Preload common files to memory
FragmentedStorage.get<SubscriptionStorage>();
FragmentedStorage.get<Settings>();
@@ -124,11 +124,10 @@ class LibraryFilesFragment : MainFragment() {
}
}
fun leaveDirectory() {
if(navStack.size > 1) {
navStack.removeLast();
openDirectory(navStack.last());
if (navStack.size > 1) {
navStack.removeAt(navStack.size - 1)
openDirectory(navStack.last())
}
else {}
}
fun openDirectory(stack: FileStack, addToStack: Boolean = false) {
if(addToStack)
@@ -21,7 +21,7 @@ class StateAssets {
if(part == "." || part == "..") {
if(parentAllowance <= 0)
throw IllegalStateException("Path [${path}] attempted to escape path..");
parts1.removeLast();
parts1.removeAt(parts1.size - 1);
toSkip++;
}
else
@@ -11,7 +11,7 @@ class SearchHistoryStorage : FragmentedStorageFileJson() {
if (!lastQueries.contains(text)) {
lastQueries.add(0, text);
if (lastQueries.size > 10)
lastQueries.removeLast();
lastQueries.removeAt(lastQueries.size - 1);
}
else {
lastQueries.remove(text);