Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with blurview #621

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PennMobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'com.github.ahorn:android-rss:master-SNAPSHOT'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation('com.github.searchy2:CustomAlertViewDialogue:2.6.0'){
exclude group: 'com.eightbitlab', module: 'blurview'
implementation('com.github.meiron03:CustomAlertViewDialogue:a1fc69d54d'){
exclude group: 'com.github.Dimezis.BlurView', module: 'blurview'
}
implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.google.android.gms:play-services-maps:18.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import com.pennapps.labs.pennmobile.classes.Post
import com.pennapps.labs.pennmobile.classes.PostCell
import com.pennapps.labs.pennmobile.components.sneaker.Utils.convertToDp
import com.pennapps.labs.pennmobile.utils.Utils
import eightbitlab.com.blurview.RenderScriptBlur
import kotlinx.android.synthetic.main.home_base_card.view.dining_prefs_btn
import kotlinx.android.synthetic.main.home_base_card.view.home_card_rv
import kotlinx.android.synthetic.main.home_base_card.view.home_card_subtitle
Expand Down Expand Up @@ -354,7 +355,7 @@ class HomeAdapter(

/** Sets up blur view on news card */
holder.itemView.blurView
.setupWith(holder.itemView.news_card_container)
.setupWith(holder.itemView.news_card_container, RenderScriptBlur(mContext))
.setFrameClearDrawable(ColorDrawable(getColor(mContext, R.color.white)))
.setBlurRadius(25f)

Expand Down Expand Up @@ -536,7 +537,7 @@ class HomeAdapter(
}
/** Sets up blur view on post card */
holder.itemView.postBlurView
.setupWith(holder.itemView.post_card_container)
.setupWith(holder.itemView.post_card_container, RenderScriptBlur(mContext))
.setFrameClearDrawable(ColorDrawable(getColor(mContext, R.color.white)))
.setBlurRadius(25f)
/** Post clicking logic if there exists a URL **/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewOutlineProvider;

import eightbitlab.com.blurview.BlurView;
import eightbitlab.com.blurview.RenderScriptBlur;
import stream.customalert.CustomAlertDialogue;
import stream.customalert.ui.RoundedCornersDrawable;

Expand Down
Loading