Skip to content

Commit 4f1fdb5

Browse files
committed
Merge branch 'release/v0.4.3'
2 parents fb2f564 + 53c9ace commit 4f1fdb5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/kotlin/com/ediposouza/teslesgendstracker/ui/decks/widget/DeckList.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ class DeckList(ctx: Context?, attrs: AttributeSet?, defStyleAttr: Int) :
138138
var attrGroup = HashMap<CardAttribute, List<CardSlot>>()
139139
attrGroup.putAll(cards.filter { it.card.attr.isBasic }.groupBy { it.card.attr }.toMutableMap())
140140
cards.filter { it.card.attr == CardAttribute.DUAL }.forEach {
141-
attrGroup.put(it.card.dualAttr1, listOf(it))
142-
attrGroup.put(it.card.dualAttr2, listOf(it))
141+
val attr1List = attrGroup[it.card.dualAttr1] ?: listOf<CardSlot>()
142+
val attr2List = attrGroup[it.card.dualAttr2] ?: listOf<CardSlot>()
143+
attrGroup.put(it.card.dualAttr1, attr1List.plus(it))
144+
attrGroup.put(it.card.dualAttr2, attr2List.plus(it))
143145
}
144146
decklist_class_attr1.visibility = View.VISIBLE.takeIf { attrGroup.size > 0 } ?: View.GONE
145147
decklist_class_attr1_qtd.visibility = View.VISIBLE.takeIf { attrGroup.size > 0 } ?: View.GONE

app/src/main/kotlin/com/ediposouza/teslesgendstracker/ui/util/PushNotificationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PushNotificationService : FirebaseMessagingService() {
3434

3535
remoteMessage.notification?.apply {
3636
Log.d(TAG, "Firebase Notification Message: " + body)
37-
showNotification(getString(R.string.app_name), body, bundleData)
37+
showNotification(getString(R.string.app_name), body ?: "", bundleData)
3838
return
3939
}
4040
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
buildscript {
44
ext {
5-
appVersionName = "0.4.2"
6-
appVersionCode = 13
5+
appVersionName = "0.4.3"
6+
appVersionCode = 14
77

88
kotlin_version = "1.1.0-beta-38"
99
prepareToRelease = true

0 commit comments

Comments
 (0)