Skip to content

Commit

Permalink
new translations on Play Store
Browse files Browse the repository at this point in the history
previously we might have applied user choice incorrectly during onboarding
  • Loading branch information
mtotschnig committed Feb 7, 2023
1 parent 02a8f15 commit b011f0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/helpers_v1.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@
<xsl:when test="$lang = 'km'">km-KH</xsl:when>
<xsl:when test="$lang = 'kn'">kn-IN</xsl:when>
<xsl:when test="$lang = 'ko'">ko-KR</xsl:when>
<xsl:when test="$lang = 'nl'">nl-NL</xsl:when>
<xsl:when test="$lang = 'pl'">pl-PL</xsl:when>
<xsl:when test="$lang = 'pt'">pt-PT</xsl:when>
<xsl:when test="$lang = 'ru'">ru-RU</xsl:when>
<xsl:when test="$lang = 'si'">si-LK</xsl:when>
<xsl:when test="$lang = 'ta'">ta-IN</xsl:when>
<xsl:when test="$lang = 'te'">te-IN</xsl:when>
<xsl:when test="$lang = 'tr'">tr-TR</xsl:when>
<xsl:when test="$lang = 'zh'">zh-CN</xsl:when>
<xsl:otherwise>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import org.totschnig.myexpenses.ui.DiscoveryHelper
import org.totschnig.myexpenses.ui.IDiscoveryHelper
import org.totschnig.myexpenses.util.Utils
import org.totschnig.myexpenses.util.crashreporting.CrashHandler
import org.totschnig.myexpenses.util.tracking.Tracker
import org.totschnig.myexpenses.util.validateDateFormat
import timber.log.Timber
import java.io.File
Expand All @@ -47,6 +48,12 @@ class UpgradeHandlerViewModel(application: Application) :
@Inject
lateinit var discoveryHelper: IDiscoveryHelper

@Inject
lateinit var crashHandler: CrashHandler

@Inject
lateinit var tracker: Tracker

private var upgradeInfoShowIndex: Int = -1
private val upgradeInfoList: MutableList<String> = mutableListOf()

Expand Down Expand Up @@ -409,6 +416,10 @@ class UpgradeHandlerViewModel(application: Application) :
) != MyApplication.INVALID_CALENDAR_ID) {
PlanExecutor.enqueueSelf(getApplication(), prefHandler, true)
}
if (fromVersion < 586) {
crashHandler.setEnabled(prefHandler.getBoolean(PrefKey.CRASHREPORT_ENABLED, false))
tracker.setEnabled(prefHandler.getBoolean(PrefKey.TRACKING, false))
}

if (upgradeInfoList.isNotEmpty()) {
postNextUpgradeInfo()
Expand Down

0 comments on commit b011f0d

Please sign in to comment.