mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Tidies code
This commit is contained in:
parent
2bc09d16d2
commit
9f0ad0f32a
1 changed files with 0 additions and 16 deletions
|
|
@ -155,7 +155,6 @@ public class ShareActivity
|
|||
.add(R.id.single_upload_fragment_container, shareView, "shareView")
|
||||
.commit();
|
||||
}
|
||||
|
||||
uploadController.prepareService();
|
||||
}
|
||||
|
||||
|
|
@ -166,21 +165,6 @@ public class ShareActivity
|
|||
failureToast.show();
|
||||
finish();
|
||||
}
|
||||
/**
|
||||
private String getRealPathFromURI(Uri contentURI) {
|
||||
String result;
|
||||
Cursor cursor = getContentResolver().query(contentURI, null, null, null, null);
|
||||
if (cursor == null) { // Source is local file path
|
||||
result = contentURI.getPath();
|
||||
} else {
|
||||
cursor.moveToFirst();
|
||||
int idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);
|
||||
result = cursor.getString(idx);
|
||||
cursor.close();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
*/
|
||||
|
||||
private String getRealPathFromURI(Uri contentUri) {
|
||||
String[] proj = { MediaStore.Images.Media.DATA };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue