fix crashes while on scanning NFC phase
- NfcUiSdkActivity requires actual font instead of none or placeholder fonts, this commit will add "Inter" font and fix crash issues.
This commit is contained in:
parent
4053b8715c
commit
c73ca9ed6d
5 changed files with 8 additions and 1 deletions
|
|
@ -295,7 +295,6 @@ elif [ "$opt" == 'Remove bulit-in fonts' ]; then
|
|||
rm -f 'mbapk/mbapk_unpacked/res/font/medium.ttf'
|
||||
rm -f 'mbapk/mbapk_unpacked/res/font/regular.ttf'
|
||||
rm -f 'mbapk/mbapk_unpacked/assets/insider.ttf'
|
||||
rm -rf 'mbapk/mbapk_unpacked/assets/font'
|
||||
# Placeholder font to fix display issues when open details balance notifications
|
||||
echo "Creating placeholder font..."
|
||||
touch 'mbapk/mbapk_unpacked/assets/flutter_assets/assets/fonts/AvertaStdCY-Regular.otf'
|
||||
|
|
@ -305,6 +304,13 @@ elif [ "$opt" == 'Remove bulit-in fonts' ]; then
|
|||
touch 'mbapk/mbapk_unpacked/res/font/medium.ttf'
|
||||
touch 'mbapk/mbapk_unpacked/res/font/regular.ttf'
|
||||
echo "Applied [Remove bulit-in fonts] patch !!!"
|
||||
echo Copying fix fonts...
|
||||
# NFC scanning phase requires actual font in order to not throw exception
|
||||
cp -f 'patches/resources/font/bold.ttf' 'mbapk/mbapk_unpacked/res/font'
|
||||
cp -f 'patches/resources/font/medium.ttf' 'mbapk/mbapkunpacked/res/font'
|
||||
cp -f 'patches/resources/font/regular.ttf 'mbapk/mbapk_unpacked/res/font'
|
||||
|
||||
|
||||
|
||||
else
|
||||
echo "[mbapk_unpacked] not found ! Please unpack APK first !"
|
||||
|
|
|
|||
1
MBCPApp/patches/resources/font/README.md
Normal file
1
MBCPApp/patches/resources/font/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
*.ttf files are Inter font.
|
||||
BIN
MBCPApp/patches/resources/font/bold.ttf
Executable file
BIN
MBCPApp/patches/resources/font/bold.ttf
Executable file
Binary file not shown.
BIN
MBCPApp/patches/resources/font/medium.ttf
Executable file
BIN
MBCPApp/patches/resources/font/medium.ttf
Executable file
Binary file not shown.
BIN
MBCPApp/patches/resources/font/regular.ttf
Executable file
BIN
MBCPApp/patches/resources/font/regular.ttf
Executable file
Binary file not shown.
Loading…
Reference in a new issue