make stickers visible for gallery to be used with other apps

This commit is contained in:
12aw 2024-01-19 15:58:08 +01:00
parent 8e4514c223
commit c4fed45851

View file

@ -121,15 +121,6 @@ public class DownloadDefaultStickers extends Service {
mDatabaseBackend.saveCid(cid, file, sticker.getString("url"));
}
File nomediastickers = new File(mStickerDir.getAbsolutePath() + "/" + sticker.getString("pack") + "/" + ".nomedia");
File nomediastickersfolder = new File(mStickerDir.getAbsolutePath() + "/" + ".nomedia");
try {
nomediastickers.createNewFile();
nomediastickersfolder.createNewFile();
} catch (final Exception e) {
e.printStackTrace();
}
if (file != null) {
MediaScannerConnection.scanFile(