Merge pull request #12852 from Florin9doi/android_12846

Update <Share> dialog on Android 10; Fixes #12846
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2020-04-25 15:23:14 +02:00
commit 259ae2862c
3 files changed
+4 -2

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
*.exp
*.qdact
controls.ini
desktop.ini
Debug
Release
Windows/.vs
+1 -1
View File
@@ -585,7 +585,7 @@ UI::EventReturn CreditsScreen::OnDiscord(UI::EventParams &e) {
UI::EventReturn CreditsScreen::OnShare(UI::EventParams &e) {
auto cr = GetI18NCategory("PSPCredits");
System_SendMessage("sharetext", cr->T("CheckOutPPSSPP", "Check out PPSSPP, the awesome PSP emulator: http://www.ppsspp.org/"));
System_SendMessage("sharetext", cr->T("CheckOutPPSSPP", "Check out PPSSPP, the awesome PSP emulator: https://www.ppsspp.org/"));
return UI::EVENT_DONE;
}
@@ -1307,7 +1307,8 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, params);
sendIntent.setAction(Intent.ACTION_SEND);
startActivity(sendIntent);
Intent shareIntent = Intent.createChooser(sendIntent, null);
startActivity(shareIntent);
return true;
} catch (Exception e) { // For example, android.content.ActivityNotFoundException
Log.e(TAG, e.toString());