Created
December 17, 2017 08:41
-
-
Save masaibar/4bf29eeba1c291b8154cbb43c4193630 to your computer and use it in GitHub Desktop.
AdMobのInterstitialAdを導入した際に踏んだ罠のメモ ref: https://qiita.com/masaibar/items/e2d293e559c30839457d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun setAppMuted(muteState: Boolean) { | |
val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager | |
audioManager.setStreamMute(AudioManager.STREAM_MUSIC, muteState) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment