Skip to content

Commit

Permalink
Revert "Changes to get app closer to working on Ox's Android 9 device"
Browse files Browse the repository at this point in the history
This reverts commit 8ef9dde.
  • Loading branch information
oxtoacart committed Sep 1, 2023
1 parent 8ef9dde commit 3b9ec19
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions android/app/src/main/kotlin/org/getlantern/lantern/LanternApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ open class LanternApp : Application() {
System.setProperty("kotlinx.coroutines.debug", "on")
}

// if (BuildConfig.DEBUG) {
// StrictMode.setThreadPolicy(
// StrictMode.ThreadPolicy.Builder()
// .detectAll()
// .penaltyLog()
// .build(),
// )
// StrictMode.setVmPolicy(
// StrictMode.VmPolicy.Builder()
// .detectLeakedSqlLiteObjects()
// .detectLeakedClosableObjects()
// .penaltyLog()
// .build(),
// )
// }
if (BuildConfig.DEBUG) {
StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.build(),
)
StrictMode.setVmPolicy(
StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.penaltyLog()
.build(),
)
}
}

override fun onCreate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ open class LanternService : Service(), Runnable {
private val started: AtomicBoolean = AtomicBoolean()
private lateinit var autoUpdater: AutoUpdater

override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
autoUpdater = AutoUpdater(this)
val autoBooted = intent?.getBooleanExtra(AUTO_BOOTED, false) == true
val autoBooted = intent.getBooleanExtra(AUTO_BOOTED, false)
Logger.d(TAG, "Called onStartCommand, autoBooted?: $autoBooted")
if (autoBooted) {
Logger.debug(
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ext {

enableTestCodeCoverage = true

compileSdkVersion = 33
targetSdkVersion = 33
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 23
androidAnnotationsVersion = '4.8.0'
androidAnnotationsAPIVersion = '4.8.0'
Expand Down

0 comments on commit 3b9ec19

Please sign in to comment.