pull/594/head
jhengazuki 3 months ago
parent c8480ff205
commit 1e55f2ff6a
  1. 7
      app/src/main/java/com/fongmi/android/tv/utils/Util.java

@ -10,7 +10,6 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Build;
import android.os.IBinder;
import android.os.Parcelable;
import android.provider.Settings;
import android.text.Html;
import android.text.TextUtils;
@ -215,10 +214,6 @@ public class Util {
components.add(new ComponentName(pkgName, resolveInfo.activityInfo.name));
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
return Intent.createChooser(intent, null).putExtra(Intent.EXTRA_EXCLUDE_COMPONENTS, components.toArray(new Parcelable[]{}));
} else {
return Intent.createChooser(intent, null);
}
return Intent.createChooser(intent, null).putExtra(Intent.EXTRA_EXCLUDE_COMPONENTS, components.toArray(new ComponentName[0]));
}
}

Loading…
Cancel
Save