diff --git a/app/src/main/java/com/finnmglas/launcher/list/other/OtherRecyclerAdapter.kt b/app/src/main/java/com/finnmglas/launcher/list/other/OtherRecyclerAdapter.kt index 6e6aad9..4a7c147 100644 --- a/app/src/main/java/com/finnmglas/launcher/list/other/OtherRecyclerAdapter.kt +++ b/app/src/main/java/com/finnmglas/launcher/list/other/OtherRecyclerAdapter.kt @@ -2,6 +2,7 @@ package com.finnmglas.launcher.list.other import android.app.Activity import android.content.Intent +import android.os.Build import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -74,14 +75,23 @@ class OtherRecyclerAdapter(val activity: Activity): OtherInfo(activity.getString(R.string.list_other_volume_down), "launcher:volumeDown", activity.getString(R.string.fas_minus))) - othersList.add( - OtherInfo(activity.getString(R.string.list_other_track_next), - "launcher:nextTrack", - activity.getString(R.string.fas_forward))) - othersList.add( - OtherInfo(activity.getString(R.string.list_other_track_previous), - "launcher:previousTrack", - activity.getString(R.string.fas_back))) + + if (Build.VERSION.SDK_INT >= 19) { // requires Android KitKat + + othersList.add( + OtherInfo( + activity.getString(R.string.list_other_track_next), + "launcher:nextTrack", + activity.getString(R.string.fas_forward) + ) + ) + othersList.add( + OtherInfo( + activity.getString(R.string.list_other_track_previous), + "launcher:previousTrack", + activity.getString(R.string.fas_back) + ) + ) + } } private fun returnChoiceIntent(forAction: String, value: String) {