change click control and autodownload bugfix
This commit is contained in:
parent
b23764f81d
commit
3de4b508b2
|
@ -22,8 +22,8 @@ android {
|
|||
// Version code schema:
|
||||
// "1.2.3-beta4" -> 1020304
|
||||
// "1.2.3" -> 1020395
|
||||
versionCode 3020104
|
||||
versionName "4.2.1"
|
||||
versionCode 3020105
|
||||
versionName "4.2.2"
|
||||
|
||||
def commit = ""
|
||||
try {
|
||||
|
|
|
@ -37,8 +37,8 @@ open class AutomaticDownloadAlgorithm {
|
|||
@UnstableApi open fun autoDownloadUndownloadedItems(context: Context): Runnable? {
|
||||
return Runnable {
|
||||
// true if we should auto download based on network status
|
||||
val networkShouldAutoDl = (isAutoDownloadAllowed)
|
||||
// val networkShouldAutoDl = (isAutoDownloadAllowed && isEnableAutodownload)
|
||||
// val networkShouldAutoDl = (isAutoDownloadAllowed)
|
||||
val networkShouldAutoDl = (isAutoDownloadAllowed && isEnableAutodownload)
|
||||
|
||||
// true if we should auto download based on power status
|
||||
val powerShouldAutoDl = (deviceCharging(context) || isEnableAutodownloadOnBattery)
|
||||
|
|
|
@ -71,14 +71,14 @@ open class EpisodeItemListAdapter(mainActivity: MainActivity) :
|
|||
val item: FeedItem = episodes[pos]
|
||||
holder.bind(item)
|
||||
|
||||
holder.coverHolder.setOnCreateContextMenuListener(this)
|
||||
holder.coverHolder.setOnLongClickListener {
|
||||
holder.infoCard.setOnCreateContextMenuListener(this)
|
||||
holder.infoCard.setOnLongClickListener {
|
||||
longPressedItem = item
|
||||
longPressedPosition = holder.bindingAdapterPosition
|
||||
startSelectMode(longPressedPosition)
|
||||
false
|
||||
}
|
||||
holder.coverHolder.setOnClickListener {
|
||||
holder.infoCard.setOnClickListener {
|
||||
if (inActionMode()) {
|
||||
toggleSelection(holder.bindingAdapterPosition)
|
||||
} else {
|
||||
|
@ -94,7 +94,7 @@ open class EpisodeItemListAdapter(mainActivity: MainActivity) :
|
|||
// longPressedPosition = holder.bindingAdapterPosition
|
||||
// false
|
||||
// }
|
||||
holder.infoCard.setOnClickListener {
|
||||
holder.coverHolder.setOnClickListener {
|
||||
val activity: MainActivity? = mainActivityRef.get()
|
||||
if (!inActionMode()) {
|
||||
val ids: LongArray = FeedItemUtil.getIds(episodes)
|
||||
|
|
|
@ -69,14 +69,14 @@ open class SubscriptionsRecyclerAdapter(mainActivity: MainActivity) :
|
|||
holder.coverImage.alpha = 1.0f
|
||||
}
|
||||
|
||||
holder.coverImage.setOnCreateContextMenuListener(this)
|
||||
holder.coverImage.setOnLongClickListener {
|
||||
holder.infoCard.setOnCreateContextMenuListener(this)
|
||||
holder.infoCard.setOnLongClickListener {
|
||||
longPressedPosition = holder.bindingAdapterPosition
|
||||
selectedItem = drawerItem
|
||||
startSelectMode(longPressedPosition)
|
||||
false
|
||||
}
|
||||
holder.coverImage.setOnClickListener {
|
||||
holder.infoCard.setOnClickListener {
|
||||
if (inActionMode()) {
|
||||
holder.selectCheckbox.setChecked(!isSelected(holder.bindingAdapterPosition))
|
||||
} else {
|
||||
|
|
|
@ -47,3 +47,10 @@
|
|||
* click on an icon allows operation on the single item
|
||||
* long-press on an icon would allow for multi-select
|
||||
|
||||
## 4.2.2
|
||||
|
||||
* bug fix on auto-download mistakenly set in 4.2.1
|
||||
* Sorry for another change in click operation
|
||||
* long-press on an icon would be the same as a click
|
||||
* click on title area allows operation on the single item
|
||||
* long-press on title area would allow for multi-select
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
Version 4.2.2 brings several changes:
|
||||
|
||||
* bug fix on auto-download mistakenly set in 4.2.1
|
||||
* Sorry for another change in click operation
|
||||
* long-press on an icon would be the same as a click
|
||||
* click on title area allows operation on the single item
|
||||
* long-press on title area would allow for multi-select
|
Loading…
Reference in New Issue