explicit logging when copying files to storage
This commit is contained in:
parent
d6c2ff9782
commit
dcd6ef8f84
|
@ -226,6 +226,7 @@ public class FileBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copyFileToPrivateStorage(File file, Uri uri) throws FileCopyException {
|
public void copyFileToPrivateStorage(File file, Uri uri) throws FileCopyException {
|
||||||
|
Log.d(Config.LOGTAG,"copy file ("+uri.toString()+") to private storage "+file.getAbsolutePath());
|
||||||
file.getParentFile().mkdirs();
|
file.getParentFile().mkdirs();
|
||||||
OutputStream os = null;
|
OutputStream os = null;
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
|
@ -248,7 +249,6 @@ public class FileBackend {
|
||||||
close(os);
|
close(os);
|
||||||
close(is);
|
close(is);
|
||||||
}
|
}
|
||||||
Log.d(Config.LOGTAG, "output file name " + file.getAbsolutePath());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copyFileToPrivateStorage(Message message, Uri uri) throws FileCopyException {
|
public void copyFileToPrivateStorage(Message message, Uri uri) throws FileCopyException {
|
||||||
|
@ -338,6 +338,7 @@ public class FileBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copyImageToPrivateStorage(File file, Uri image) throws FileCopyException {
|
public void copyImageToPrivateStorage(File file, Uri image) throws FileCopyException {
|
||||||
|
Log.d(Config.LOGTAG,"copy image ("+image.toString()+") to private storage "+file.getAbsolutePath());
|
||||||
copyImageToPrivateStorage(file, image, 0);
|
copyImageToPrivateStorage(file, image, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,11 +153,7 @@ public class ConversationActivity extends XmppActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isConversationsOverviewHideable() {
|
public boolean isConversationsOverviewHideable() {
|
||||||
if (mContentView instanceof SlidingPaneLayout) {
|
return mContentView instanceof SlidingPaneLayout;
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isConversationsOverviewVisable() {
|
public boolean isConversationsOverviewVisable() {
|
||||||
|
|
Loading…
Reference in a new issue