-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2310 from christophehenry/add-kodi-share-player
Add send to Kodi button to player next to share button
- Loading branch information
Showing
5 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.schabi.newpipe.util; | ||
|
||
|
||
import android.content.Context; | ||
import android.content.DialogInterface; | ||
import androidx.appcompat.app.AlertDialog; | ||
|
||
import org.schabi.newpipe.R; | ||
|
||
|
||
public class KoreUtil { | ||
private KoreUtil() { } | ||
|
||
public static void showInstallKoreDialog(final Context context) { | ||
final AlertDialog.Builder builder = new AlertDialog.Builder(context); | ||
builder.setMessage(R.string.kore_not_found) | ||
.setPositiveButton(R.string.install, | ||
(DialogInterface dialog, int which) -> NavigationHelper.installKore(context)) | ||
.setNegativeButton(R.string.cancel, (DialogInterface dialog, int which) -> { | ||
}); | ||
builder.create().show(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters