You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android/app/src/main/java/me/kavishdevar/librepods/utils/RadareOffsetFinder.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,11 @@ class RadareOffsetFinder(context: Context) {
115
115
}
116
116
117
117
funisSdpOffsetAvailable(): Boolean {
118
+
val sharedPreferences =ServiceManager.getService()?.applicationContext?.getSharedPreferences("settings", Context.MODE_PRIVATE) // ik not good practice- too lazy
119
+
if (sharedPreferences?.getBoolean("skip_setup", false) ==true) {
120
+
Log.d(TAG, "Setup skipped, returning true for SDP offset.")
121
+
returntrue
122
+
}
118
123
try {
119
124
val process =Runtime.getRuntime().exec(arrayOf("/system/bin/getprop", SDP_OFFSET_PROP))
120
125
val reader =BufferedReader(InputStreamReader(process.inputStream))
@@ -462,7 +467,7 @@ class RadareOffsetFinder(context: Context) {
0 commit comments