Skip to content

Commit

Permalink
Fix issues with blurview (#621)
Browse files Browse the repository at this point in the history
The jitpack build kept failing so I just forked the repo and changed it
to use the right version of the blurview library
  • Loading branch information
meiron03 authored Aug 31, 2024
1 parent c58097f commit d758c96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
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

0 comments on commit d758c96

Please sign in to comment.