diff --git a/app/src/main/kotlin/com/fox2code/mmm/XHooks.kt b/app/src/main/kotlin/com/fox2code/mmm/XHooks.kt index 90232391..6abe652c 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/XHooks.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/XHooks.kt @@ -15,9 +15,10 @@ import com.fox2code.mmm.repo.RepoManager /** * Class made to expose some manager functions to xposed modules. * It will not be obfuscated on release builds + * + * TODO: Evaluate usage and deprecate if not needed */ @Suppress("UNUSED_PARAMETER") -@Deprecated("This class is deprecated and will be removed in the future") @Keep enum class XHooks { ; diff --git a/app/src/main/kotlin/com/fox2code/mmm/module/ActionButtonType.kt b/app/src/main/kotlin/com/fox2code/mmm/module/ActionButtonType.kt index bf4b0bcd..a4ff066c 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/module/ActionButtonType.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/module/ActionButtonType.kt @@ -182,7 +182,7 @@ enum class ActionButtonType { var markwon: Markwon? = null val localModuleInfo = moduleHolder.moduleInfo if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) { - markwon = INSTANCE!!.reallyGetMarkwon() + markwon = INSTANCE!!.markwon // Re-render each time in cse of config changes desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog) } @@ -484,7 +484,7 @@ enum class ActionButtonType { var markwon: Markwon? = null val localModuleInfo = moduleHolder.moduleInfo if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) { - markwon = INSTANCE!!.reallyGetMarkwon() + markwon = INSTANCE!!.markwon // Re-render each time in cse of config changes desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog) } diff --git a/app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt b/app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt index 6d7f39b4..3d6b08bd 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt @@ -48,8 +48,6 @@ import okhttp3.Response import okhttp3.Response.* import okhttp3.dnsoverhttps.DnsOverHttps import okhttp3.dnsoverhttps.DnsOverHttps.Builder.* -import okhttp3.logging.HttpLoggingInterceptor -import okhttp3.logging.HttpLoggingInterceptor.* import okio.BufferedSink import org.chromium.net.CronetEngine import timber.log.Timber @@ -342,15 +340,6 @@ enum class Http {; chain.proceed(request.build()) }) - // for debug builds, add a logging interceptor - // this spams the logcat, so it's disabled by default and hidden behind a build config flag - if (BuildConfig.DEBUG && BuildConfig.DEBUG_HTTP) { - Timber.w("HTTP logging is enabled. Performance may be impacted.") - val loggingInterceptor = HttpLoggingInterceptor() - loggingInterceptor.setLevel(Level.BODY) - httpclientBuilder.addInterceptor(loggingInterceptor) - } - // add sentry interceptor httpclientBuilder.addInterceptor(SentryOkHttpInterceptor()) diff --git a/app/src/main/res/xml/app_info_preferences.xml b/app/src/main/res/xml/app_info_preferences.xml index ad102faa..e8af226f 100644 --- a/app/src/main/res/xml/app_info_preferences.xml +++ b/app/src/main/res/xml/app_info_preferences.xml @@ -3,17 +3,17 @@ - +