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