Skip to content

Commit c87fdf8

Browse files
committed
fix: update cache path retrieval in ExternalStickerCacheHelper
1 parent 6e628e9 commit c87fdf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/helper/ExternalStickerCacheHelper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import java.io.File
2424
object ExternalStickerCacheHelper {
2525
const val TAG = "ExternalStickerCache"
2626

27-
private val cachePath = ApplicationLoader.applicationContext.getExternalFilesDir(null)!!.resolve("caches")
27+
private val cachePath by lazy { AndroidUtilities.getCacheDir() }
2828

2929
@JvmStatic
3030
fun checkUri(configCell: ConfigCellAutoTextCheck, context: Context) {
@@ -277,7 +277,7 @@ object ExternalStickerCacheHelper {
277277
private fun showToast(msg: String?) {
278278
var realMessage = msg
279279
if (realMessage == null) {
280-
realMessage = LocaleController.getString("Done", R.string.Done)
280+
realMessage = LocaleController.getString(R.string.Done)
281281
}
282282
AndroidUtilities.runOnUIThread {
283283
if (realMessage != null) {

0 commit comments

Comments
 (0)