Skip to content

Commit 545fd3e

Browse files
committed
fix(flipcash): update access key photo warning labels
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 4abcd7e commit 545fd3e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/flipcash/core/src/main/res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
<string name="error_title_failedToPurchaseItem">Purchase Failed</string>
2222
<string name="error_description_failedToPurchaseItem">Something went wrong during payment. Please try again later</string>
2323

24+
<string name="subtitle_accessKeySnapshotDescription">Tap the Google Lens icon to open the QR code to log into Flipcash. Alternatively you can log in manually by entering the 12 words in the Flipcash Log In screen.</string>
25+
<string name="subtitle_accessKeySnapshotWarning">Warning! This image gives access to all the funds you have in Flipcash. Do not share this image with anyone else. Keep it secure and safe.</string>
26+
27+
2428
<string name="title_badge_no_connection">No Connection</string>
2529

2630
<string name="title_give">Give</string>

apps/flipcash/shared/accesskey/src/main/kotlin/com/flipcash/app/accesskey/BaseAccessKeyViewModel.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import java.util.Date
4141
import java.util.Locale
4242
import kotlin.math.roundToInt
4343
import com.getcode.theme.R as themeR
44+
import androidx.core.graphics.createBitmap
4445

4546

4647
data class AccessKeyUiModel(
@@ -162,10 +163,7 @@ abstract class BaseAccessKeyViewModel(
162163
resources.getDrawable(R.drawable.ic_flipcash_logo_access_key)
163164
?.toBitmap(logoWidth.roundToInt(), logoHeight)!!
164165

165-
val imageOut = Bitmap.createBitmap(
166-
targetWidth, targetHeight,
167-
Bitmap.Config.ARGB_8888
168-
).applyCanvas {
166+
val imageOut = createBitmap(targetWidth, targetHeight).applyCanvas {
169167
val accessBgActualWidth =
170168
accessKeyBg.getScaledWidth(resources.displayMetrics)
171169

0 commit comments

Comments
 (0)