public static Uri getUri(File file) {
        return (file != null) ? Uri.fromFile(file) : null;
    }
Convert File into Uri.

@param file
@return uri
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/AndroidFileUtils.java