mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-12 21:30:30 +05:30
feat: hide crash dialogs when developing
Hides the crash dialogs when the application is being developed, as it is obvious and the crash log is easily available
This commit is contained in:
parent
de975986ce
commit
79039f727a
@ -29,6 +29,7 @@ import androidx.navigation.findNavController
|
||||
import androidx.navigation.fragment.NavHostFragment
|
||||
import androidx.navigation.ui.setupWithNavController
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.github.libretube.BuildConfig
|
||||
import com.github.libretube.NavDirections
|
||||
import com.github.libretube.R
|
||||
import com.github.libretube.compat.PictureInPictureCompat
|
||||
@ -153,7 +154,8 @@ class MainActivity : BaseActivity() {
|
||||
|
||||
// handle error logs
|
||||
PreferenceHelper.getErrorLog().ifBlank { null }?.let {
|
||||
ErrorDialog().show(supportFragmentManager, null)
|
||||
if (!BuildConfig.DEBUG)
|
||||
ErrorDialog().show(supportFragmentManager, null)
|
||||
}
|
||||
|
||||
setupSubscriptionsBadge()
|
||||
|
Loading…
Reference in New Issue
Block a user