set to snackbar fade animation

This commit is contained in:
veliymolfar 2020-06-26 16:40:58 +03:00
parent 4a9c73a5e2
commit ef4bf971f0

View file

@ -30,6 +30,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.snackbar.BaseTransientBottomBar;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import net.osmand.AndroidUtils; import net.osmand.AndroidUtils;
@ -186,6 +187,7 @@ public class RearrangePoiFiltersFragment extends DialogFragment implements Selec
}); });
ViewCompat.setElevation(snackbar.getView(), 0f); ViewCompat.setElevation(snackbar.getView(), 0f);
snackbar.setAnchorView(buttonsContainer); snackbar.setAnchorView(buttonsContainer);
snackbar.setAnimationMode(BaseTransientBottomBar.ANIMATION_MODE_FADE);
UiUtilities.setupSnackbar(snackbar, nightMode); UiUtilities.setupSnackbar(snackbar, nightMode);
snackbar.show(); snackbar.show();
} }