mirror of
https://github.com/love2d/love-android.git
synced 2026-08-15 15:51:20 +02:00
Revert "Implement partial "Share to LOVE" support."
This commit is contained in:
@@ -120,7 +120,6 @@ public class GameActivity extends SDLActivity {
|
||||
storagePermissionUnnecessary = false;
|
||||
embed = context.getResources().getBoolean(R.bool.embed);
|
||||
|
||||
// Get filename from "Open with" of another application
|
||||
handleIntent(this.getIntent());
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -146,17 +145,7 @@ public class GameActivity extends SDLActivity {
|
||||
}
|
||||
|
||||
protected void handleIntent(Intent intent) {
|
||||
Uri game = null;
|
||||
|
||||
// Try to handle "Share" intent.
|
||||
// This is actually "bit tricky" to get working in user phone
|
||||
// because shared static variables issue in the native side
|
||||
// (user have to clear LOVE for Android in their recent apps list).
|
||||
if (Intent.ACTION_SEND.equals(intent.getAction())) {
|
||||
game = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
||||
} else {
|
||||
game = intent.getData();
|
||||
}
|
||||
Uri game = intent.getData();
|
||||
|
||||
if (!embed && game != null) {
|
||||
String scheme = game.getScheme();
|
||||
|
||||
Reference in New Issue
Block a user