indent with spaces
This commit is contained in:
parent
afb151eb3f
commit
4112a65c20
|
@ -21,7 +21,8 @@ import de.danoeh.antennapod.core.feed.FeedMedia;
|
||||||
public class ShareUtils {
|
public class ShareUtils {
|
||||||
private static final String TAG = "ShareUtils";
|
private static final String TAG = "ShareUtils";
|
||||||
|
|
||||||
private ShareUtils() {}
|
private ShareUtils() {
|
||||||
|
}
|
||||||
|
|
||||||
public static void shareLink(Context context, String text) {
|
public static void shareLink(Context context, String text) {
|
||||||
Intent i = new Intent(Intent.ACTION_SEND);
|
Intent i = new Intent(Intent.ACTION_SEND);
|
||||||
|
@ -81,7 +82,8 @@ public class ShareUtils {
|
||||||
i.putExtra(Intent.EXTRA_STREAM, fileUri);
|
i.putExtra(Intent.EXTRA_STREAM, fileUri);
|
||||||
i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
|
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) {
|
for (ResolveInfo resolveInfo : resInfoList) {
|
||||||
String packageName = resolveInfo.activityInfo.packageName;
|
String packageName = resolveInfo.activityInfo.packageName;
|
||||||
context.grantUriPermission(packageName, fileUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
context.grantUriPermission(packageName, fileUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||||
|
|
Loading…
Reference in New Issue