Skip to content

Commit

Permalink
fixed the tmp_images bug which led to image editing crashes, now it d…
Browse files Browse the repository at this point in the history
…oesnt crash
  • Loading branch information
sank20 committed Jan 31, 2016
1 parent 2edf0ad commit 5db6cff
Show file tree
Hide file tree
Showing 7 changed files with 2,639 additions and 414 deletions.
429 changes: 84 additions & 345 deletions .idea/workspace.xml

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions app/hs_err_pid11518.log

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/src/main/java/com/iitb/mobileict/lokavidya/Share.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ public static void tmp_images_make(String Name){
List<String> toImagesList = new ArrayList<String>();
for(int i=0;i<fromImages.length;i++){
String image = fromImages[i];
Log.i("tmp_images_make","image:"+image);
toImagesList.add(Name+image.substring(image.length()-6));
}
String[] toImages = new String[toImagesList.size()];
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/com/iitb/mobileict/lokavidya/ui/Projects.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,28 @@ protected void onCreate(Bundle savedInstanceState) {
Projectfile f = new Projectfile(context);
List<String> projectsList = f.DisplayProject_with_zips();


for (int i = 0; i < projectsList.size(); i++) {
System.out.println("--------------projects : " + projectsList.get(i));

if(new File(seedpath+projectsList.get(i)).isDirectory()) {
File tmp_images = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/lokavidya/" + projectsList.get(i) + "/tmp_images");
if (!tmp_images.exists()) {
Log.i("projectlist", "tmp_images not found, making dir");
tmp_images.mkdir();
Log.i("tmp_images", "tmp_images folder created");
Share.tmp_images_make(projectsList.get(i));
}
}

if (projectsList.get(i).length() < 4) continue;
if (projectsList.get(i).substring(projectsList.get(i).length() - 4).equals(".zip")) {
System.out.println("-" + projectsList.get(i).substring(projectsList.get(i).length() - 4) + ":inside");
File delete_file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/lokavidya/" + projectsList.get(i));
delete_file.delete();

}

}


Expand Down
138 changes: 69 additions & 69 deletions build/intermediates/dex-cache/cache.xml

Large diffs are not rendered by default.

871 changes: 871 additions & 0 deletions hs_err_pid10951.log

Large diffs are not rendered by default.

916 changes: 916 additions & 0 deletions hs_err_pid10990.log

Large diffs are not rendered by default.

0 comments on commit 5db6cff

Please sign in to comment.