Browse Source

better distinction between green and blue build flavors (#1997)

pull/2009/head
Konrad Pozniak 5 years ago committed by GitHub
parent
commit
3558d441a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/build.gradle
  2. 2
      app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationHelper.java

1
app/build.gradle

@ -51,6 +51,7 @@ android {
productFlavors {
blue {}
green {
resValue "string", "app_name", APP_NAME + " Test"
applicationIdSuffix ".test"
versionNameSuffix "-" + getGitSha()
}

2
app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationHelper.java

@ -295,7 +295,7 @@ public class NotificationHelper {
.setSmallIcon(R.drawable.ic_notify)
.setContentIntent(summary ? summaryResultPendingIntent : eventResultPendingIntent)
.setDeleteIntent(deletePendingIntent)
.setColor(BuildConfig.DEBUG ? Color.parseColor("#19A341") : ContextCompat.getColor(context, R.color.tusky_blue))
.setColor(BuildConfig.FLAVOR == "green" ? Color.parseColor("#19A341") : ContextCompat.getColor(context, R.color.tusky_blue))
.setGroup(account.getAccountId())
.setAutoCancel(true)
.setShortcutId(Long.toString(account.getId()))

Loading…
Cancel
Save