mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 7.8.1
This commit is contained in:
parent
dd2b001b95
commit
3ac3c37dd2
429 changed files with 138188 additions and 2463 deletions
|
|
@ -994,31 +994,35 @@ public class SharedConfig {
|
|||
}
|
||||
|
||||
public static void checkSaveToGalleryFiles() {
|
||||
try {
|
||||
File telegramPath = new File(Environment.getExternalStorageDirectory(), "Telegram");
|
||||
File imagePath = new File(telegramPath, "Telegram Images");
|
||||
imagePath.mkdir();
|
||||
File videoPath = new File(telegramPath, "Telegram Video");
|
||||
videoPath.mkdir();
|
||||
Utilities.globalQueue.postRunnable(() -> {
|
||||
try {
|
||||
|
||||
if (saveToGallery) {
|
||||
if (imagePath.isDirectory()) {
|
||||
new File(imagePath, ".nomedia").delete();
|
||||
}
|
||||
if (videoPath.isDirectory()) {
|
||||
new File(videoPath, ".nomedia").delete();
|
||||
}
|
||||
} else {
|
||||
if (imagePath.isDirectory()) {
|
||||
AndroidUtilities.createEmptyFile(new File(imagePath, ".nomedia"));
|
||||
}
|
||||
if (videoPath.isDirectory()) {
|
||||
AndroidUtilities.createEmptyFile(new File(videoPath, ".nomedia"));
|
||||
|
||||
File telegramPath = new File(Environment.getExternalStorageDirectory(), "Telegram");
|
||||
File imagePath = new File(telegramPath, "Telegram Images");
|
||||
imagePath.mkdir();
|
||||
File videoPath = new File(telegramPath, "Telegram Video");
|
||||
videoPath.mkdir();
|
||||
|
||||
if (saveToGallery) {
|
||||
if (imagePath.isDirectory()) {
|
||||
new File(imagePath, ".nomedia").delete();
|
||||
}
|
||||
if (videoPath.isDirectory()) {
|
||||
new File(videoPath, ".nomedia").delete();
|
||||
}
|
||||
} else {
|
||||
if (imagePath.isDirectory()) {
|
||||
AndroidUtilities.createEmptyFile(new File(imagePath, ".nomedia"));
|
||||
}
|
||||
if (videoPath.isDirectory()) {
|
||||
AndroidUtilities.createEmptyFile(new File(videoPath, ".nomedia"));
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
FileLog.e(e);
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
FileLog.e(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static int getChatSwipeAction(int currentAccount) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue