Merge pull request #3271 from ByteHamster/fix-batch-edit

Fixed batch edit items grayed out on API 23 and 24
This commit is contained in:
H. Lehmann 2019-07-14 10:30:10 +02:00 committed by GitHub
commit 3b4fd3f414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@ package de.danoeh.antennapod.dialog;
import android.app.AlertDialog;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
@ -12,6 +13,7 @@ import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.util.ArrayMap;
import android.support.v4.view.ViewCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
@ -203,6 +205,10 @@ public class EpisodesApplyActionFragment extends Fragment {
return true;
});
if (Build.VERSION.SDK_INT == 23 || Build.VERSION.SDK_INT == 24) {
ViewCompat.setElevation(view.findViewById(R.id.fabSDScrollCtr), 8);
}
showSpeedDialIfAnyChecked();
return view;
@ -218,10 +224,6 @@ public class EpisodesApplyActionFragment extends Fragment {
mSpeedDialView.setVisibility(checkedIds.size() > 0 ? View.VISIBLE : View.GONE);
}
private void hideSpeedDial() {
mSpeedDialView.setVisibility(View.GONE);
}
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);