Skip to content

Commit 09947ed

Browse files
committed
update agp
1 parent 8a14dc3 commit 09947ed

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

app/src/main/java/org/akanework/gramophone/logic/GramophoneApplication.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class GramophoneApplication : Application(), SingletonImageLoader.Factory,
128128
} else it
129129
}
130130
.let {
131-
if (Debug.isDebuggerConnected())
131+
if (Debug.isDebuggerConnected() || isAlpsBoostFwkPresent())
132132
it.permitDiskReads()
133133
else it
134134
}
@@ -390,4 +390,13 @@ class GramophoneApplication : Application(), SingletonImageLoader.Factory,
390390
startActivity(intent)
391391
exitProcess(10)
392392
}
393+
394+
private fun isAlpsBoostFwkPresent(): Boolean {
395+
try {
396+
Class.forName("com.mediatek.boostfwk.BoostFwkManagerImpl")
397+
return true
398+
} catch (_: Throwable) {
399+
return false
400+
}
401+
}
393402
}

app/src/main/java/org/akanework/gramophone/logic/utils/Flags.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package org.akanework.gramophone.logic.utils
22

33
object Flags {
44
const val TEST_RG_OFFLOAD = false // test only
5+
// TODO: swap sides if a lot of text is on right and not a lot is on the left
56
const val TTML_AGENT_SMART_SIDES = true
67

78
// Before turning it on in prod we need i18n.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
val agpVersion = "9.0.0-rc03"
3+
val agpVersion = "9.0.0"
44
id("com.android.application") version agpVersion apply false
55
id("com.android.built-in-kotlin") version agpVersion apply false
66
id("com.android.library") version agpVersion apply false

media3

Submodule media3 updated 1 file

0 commit comments

Comments
 (0)