kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
7b0479ff0f
commit
213715a0dc
|
@ -494,8 +494,9 @@ public class ConversationFragment extends SherlockListFragment
|
|||
|
||||
int i = 0;
|
||||
File file = new File(outputDirectory, base + "." + extension);
|
||||
while (file.exists())
|
||||
while (file.exists()) {
|
||||
file = new File(outputDirectory, base + "-" + (++i) + "." + extension);
|
||||
}
|
||||
|
||||
return file;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue