mirror of
https://github.com/love2d/love-android.git
synced 2026-08-17 19:24:07 +02:00
Use FLAG_ACTIVITY_NEW_TASK when opening our site.
This commit is contained in:
@@ -20,6 +20,7 @@ public class AboutActivity extends AppCompatActivity {
|
|||||||
button.setOnClickListener(v -> {
|
button.setOnClickListener(v -> {
|
||||||
Uri uri = Uri.parse("https://love2d.org/");
|
Uri uri = Uri.parse("https://love2d.org/");
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
||||||
|
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user