Skip to content

Commit

Permalink
do not provide equalizer to firebase test lab
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Oct 7, 2024
1 parent 7a31da9 commit 5f2a3f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import android.content.ActivityNotFoundException
import android.content.Intent
import android.media.audiofx.AudioEffect
import android.os.Bundle
import android.provider.Settings
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down Expand Up @@ -91,7 +92,9 @@ class ViewPagerFragment : BaseFragment(true) {
putExtra(AudioEffect.EXTRA_CONTENT_TYPE, AudioEffect.CONTENT_TYPE_MUSIC)
}
try {
(requireActivity() as MainActivity).startingActivity.launch(intent)
if (Settings.System.getString(requireContext().contentResolver, "firebase.test.lab") != "true") {
(requireActivity() as MainActivity).startingActivity.launch(intent)
}
} catch (_: ActivityNotFoundException) {
// Let's show a toast here if no system inbuilt EQ was found.
Toast.makeText(
Expand Down

0 comments on commit 5f2a3f3

Please sign in to comment.