1 to 512 and save the
public void fixPaper() {
File folder = new File(Main.getSettings(context).getPaper_save_location());
if (!folder.exists()) {
folder.mkdirs();
}
folder = new File(Main.getSettings(context).getPaper_location());
for (String file : Main.getSettings(context).getPaper_list()) {
file = file.replaceAll("[^a-zA-Z0-9]", "");
File fileSave = new File(folder, file);
if (!fileSave.exists()) {
fileSave.createNewFile();
}
Paperpaper = Main.getSettings(context).getPaper(file);
if (paper.getOrientation() == Paper.ORIENTATION_LANDSCAPE) {
if (Main.getSettings(context).getPaper_save_orientation() == Paper.ORIENTATION_PORTRAIT) {
Main.getSettings(context).setPaper_save_orientation(Paper.ORIENTATION_PORTRAIT);
} else {
Main.getSettings(context).setPaper_save_orientation(Paper.ORIENTATION_LANDSCAPE);
Related links:
Comments