cleanup
This commit is contained in:
parent
e845d901ce
commit
1c1777cd6e
1 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ public class MenuBuilder {
|
||||||
try {
|
try {
|
||||||
inputStream = app.getContentResolver().openInputStream(uri);
|
inputStream = app.getContentResolver().openInputStream(uri);
|
||||||
if (inputStream != null) {
|
if (inputStream != null) {
|
||||||
uploadImageToPlace(view, inputStream);
|
uploadImageToPlace(inputStream);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error(e);
|
LOG.error(e);
|
||||||
|
@ -444,7 +444,7 @@ public class MenuBuilder {
|
||||||
t.start();
|
t.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void uploadImageToPlace(View view, InputStream image) {
|
private void uploadImageToPlace(InputStream image) {
|
||||||
InputStream serverData = new ByteArrayInputStream(compressImage(image));
|
InputStream serverData = new ByteArrayInputStream(compressImage(image));
|
||||||
final String baseUrl = OPRWebviewActivity.getBaseUrl(app);
|
final String baseUrl = OPRWebviewActivity.getBaseUrl(app);
|
||||||
String url = baseUrl + "api/ipfs/image";
|
String url = baseUrl + "api/ipfs/image";
|
||||||
|
|
Loading…
Reference in a new issue