indent with spaces

This commit is contained in:
Tony Tam 2020-11-27 11:50:20 -08:00
parent afb151eb3f
commit 4112a65c20
1 changed files with 68 additions and 66 deletions

View File

@ -21,7 +21,8 @@ import de.danoeh.antennapod.core.feed.FeedMedia;
public class ShareUtils {
private static final String TAG = "ShareUtils";
private ShareUtils() {}
private ShareUtils() {
}
public static void shareLink(Context context, String text) {
Intent i = new Intent(Intent.ACTION_SEND);
@ -81,7 +82,8 @@ public class ShareUtils {
i.putExtra(Intent.EXTRA_STREAM, fileUri);
i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
List<ResolveInfo> resInfoList = context.getPackageManager().queryIntentActivities(i, PackageManager.MATCH_DEFAULT_ONLY);
List<ResolveInfo> resInfoList = context.getPackageManager()
.queryIntentActivities(i, PackageManager.MATCH_DEFAULT_ONLY);
for (ResolveInfo resolveInfo : resInfoList) {
String packageName = resolveInfo.activityInfo.packageName;
context.grantUriPermission(packageName, fileUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);