diff --git a/app/src/main/java/eu/kanade/tachiyomi/App.kt b/app/src/main/java/eu/kanade/tachiyomi/App.kt index 16c4ddfd0..e7cacadb3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/App.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/App.kt @@ -73,7 +73,9 @@ open class App : Application(), LifecycleObserver { } protected open fun setupAcra() { - ACRA.init(this) + if (BuildConfig.FLAVOR != "dev") { + ACRA.init(this) + } } protected open fun setupNotificationChannels() { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt index 69cb08033..f3f496b1d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt @@ -10,6 +10,7 @@ import android.provider.Settings import androidx.core.net.toUri import androidx.preference.PreferenceScreen import com.afollestad.materialdialogs.MaterialDialog +import eu.kanade.tachiyomi.BuildConfig import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.cache.ChapterCache import eu.kanade.tachiyomi.data.database.DatabaseHelper @@ -43,11 +44,14 @@ class SettingsAdvancedController : SettingsController() { @SuppressLint("BatteryLife") override fun setupPreferenceScreen(screen: PreferenceScreen) = screen.apply { titleRes = R.string.pref_category_advanced - switchPreference { - key = "acra.enable" - titleRes = R.string.pref_enable_acra - summaryRes = R.string.pref_acra_summary - defaultValue = true + + if (BuildConfig.FLAVOR != "dev") { + switchPreference { + key = "acra.enable" + titleRes = R.string.pref_enable_acra + summaryRes = R.string.pref_acra_summary + defaultValue = true + } } preference {