{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
-
Toggle commit list
-
resolved all discussions
Toggle commit list -
merged
Toggle commit list
842 | return null; | |
843 | } | |
844 | String filePath = file.getAbsolutePath(); | |
845 | Cursor cursor = context.getContentResolver().query( | |
846 | MediaStore.Images.Media.EXTERNAL_CONTENT_URI, | |
847 | new String[] {BaseColumns._ID}, | |
848 | MediaStore.MediaColumns.DATA + "=? ", | |
849 | new String[] { filePath }, null); | |
850 | ||
851 | if (cursor != null && cursor.moveToFirst()) { | |
852 | int id = cursor.getInt(cursor | |
853 | .getColumnIndex(BaseColumns._ID)); | |
854 | Uri baseUri = Uri.parse("content://media/external/video/media"); | |
855 | return Uri.withAppendedPath(baseUri, "" + id); | |
856 | } else { | |
857 | if (file.exists()) { | |
Please
register
or
sign in
to reply
|
assigned to @lee-mk
marked the task @kim-p as completed
added 1 commit
resolved all discussions
resolved all discussions
mentioned in commit 9b011401
mentioned in commit 9b011401
merged
merged