Skip to content
Snippets Groups Projects
Commit bbb8e5c4 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Code cleaning

parent ec94693b
No related branches found
No related tags found
No related merge requests found
Pipeline #7384 passed with stage
in 3 minutes and 50 seconds
......@@ -248,7 +248,7 @@ open class AudioPlayerContainerActivity : BaseActivity() {
* @return true on success else false.
*/
fun slideDownAudioPlayer(): Boolean {
if (isAudioPlayerReady && bottomSheetBehavior!!.state == STATE_EXPANDED) {
if (isAudioPlayerReady && bottomSheetBehavior?.state == STATE_EXPANDED) {
bottomSheetBehavior?.state = STATE_COLLAPSED
return true
}
......
......@@ -251,7 +251,7 @@ class MainActivity : ContentActivity(), ExtensionManagerService.ExtensionManager
}
/* Close playlist search if open or Slide down the audio player if it is shown entirely. */
if (isAudioPlayerReady && (audioPlayer!!.backPressed() || slideDownAudioPlayer()))
if (isAudioPlayerReady && (audioPlayer?.backPressed() == true || slideDownAudioPlayer()))
return
// If it's the directory view, a "backpressed" action shows a parent.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment