-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1410 from nextcloud/noStaticFavIconHandler
Use one Glide instance per NewsListRecyclerAdapter
- Loading branch information
Showing
17 changed files
with
1,350 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
...Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/RssItemCardViewHolder.java
This file was deleted.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/RssItemCardViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package de.luhmer.owncloudnewsreader.adapter | ||
|
||
import android.content.SharedPreferences | ||
import android.view.View | ||
import android.widget.FrameLayout | ||
import android.widget.ImageView | ||
import android.widget.ProgressBar | ||
import android.widget.TextView | ||
import androidx.annotation.CallSuper | ||
import com.bumptech.glide.RequestManager | ||
import de.luhmer.owncloudnewsreader.database.model.RssItem | ||
import de.luhmer.owncloudnewsreader.databinding.SubscriptionDetailListItemCardViewBinding | ||
import de.luhmer.owncloudnewsreader.helper.FavIconHandler | ||
|
||
class RssItemCardViewHolder internal constructor( | ||
binding: SubscriptionDetailListItemCardViewBinding, | ||
faviconHandler: FavIconHandler, | ||
glide: RequestManager, | ||
sharedPreferences: SharedPreferences, | ||
) : RssItemViewHolder<SubscriptionDetailListItemCardViewBinding>( | ||
binding, | ||
faviconHandler, | ||
glide, | ||
sharedPreferences, | ||
) { | ||
override fun getImageViewFavIcon(): ImageView { | ||
return binding.imgViewFavIcon | ||
} | ||
|
||
override fun getStar(): ImageView { | ||
return binding.starImageview | ||
} | ||
|
||
override fun getPlayPausePodcastButton(): ImageView { | ||
return binding.podcastWrapper.btnPlayPausePodcast | ||
} | ||
|
||
override fun getColorFeed(): View { | ||
return binding.colorLineFeed | ||
} | ||
|
||
override fun getTextViewTitle(): TextView { | ||
return binding.tvSubscription | ||
} | ||
|
||
override fun getTextViewSummary(): TextView { | ||
return binding.summary | ||
} | ||
|
||
override fun getTextViewBody(): TextView { | ||
return binding.body | ||
} | ||
|
||
override fun getTextViewItemDate(): TextView { | ||
return binding.tvItemDate | ||
} | ||
|
||
override fun getPlayPausePodcastWrapper(): FrameLayout { | ||
return binding.podcastWrapper.flPlayPausePodcastWrapper | ||
} | ||
|
||
override fun getPodcastDownloadProgress(): ProgressBar { | ||
return binding.podcastWrapper.podcastDownloadProgress | ||
} | ||
|
||
@CallSuper | ||
override fun bind(rssItem: RssItem) { | ||
super.bind(rssItem) | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
...oid-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/RssItemFullTextViewHolder.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...droid-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/RssItemFullTextViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package de.luhmer.owncloudnewsreader.adapter | ||
|
||
import android.content.SharedPreferences | ||
import com.bumptech.glide.RequestManager | ||
import de.luhmer.owncloudnewsreader.databinding.SubscriptionDetailListItemTextBinding | ||
import de.luhmer.owncloudnewsreader.helper.FavIconHandler | ||
|
||
class RssItemFullTextViewHolder internal constructor( | ||
binding: SubscriptionDetailListItemTextBinding, | ||
faviconHandler: FavIconHandler, | ||
glide: RequestManager, | ||
sharedPreferences: SharedPreferences, | ||
) : RssItemTextViewHolder(binding, faviconHandler, glide, sharedPreferences) |
115 changes: 0 additions & 115 deletions
115
...rc/main/java/de/luhmer/owncloudnewsreader/adapter/RssItemHeadlineThumbnailViewHolder.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.