Skip to content

Commit

Permalink
feat: hide crash dialogs when developing
Browse files Browse the repository at this point in the history
Hides the crash dialogs when the application is being developed,
as it is obvious and the crash log is easily available
  • Loading branch information
FineFindus authored and Bnyro committed Nov 11, 2024
1 parent de97598 commit 79039f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 79039f7

Please sign in to comment.