Browse Source

Revert "Implement partial "Share to LOVE" support."

Miku AuahDark 4 years ago
parent
commit
a3fc057064

+ 1 - 2
app/src/embed/AndroidManifest.xml

@@ -12,8 +12,7 @@
       android:icon="@drawable/love"
       android:label="LÖVE for Android"
       android:usesCleartextTraffic="true"
-      android:hardwareAccelerated="true"
-      tools:node="replace" >
+	  tools:node="replace" >
       <activity
         android:name="org.love2d.android.GameActivity"
         android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|navigation"

+ 0 - 5
app/src/main/AndroidManifest.xml

@@ -68,11 +68,6 @@
           <data android:scheme="content" />
           <data android:mimeType="application/octet-stream" />
         </intent-filter>
-        <intent-filter>
-          <action android:name="android.intent.action.SEND" />
-          <category android:name="android.intent.category.DEFAULT" />
-          <data android:mimeType="application/*" />
-        </intent-filter>
       </activity>
       <activity
         android:name="org.love2d.android.DownloadActivity"

+ 1 - 12
love/src/main/java/org/love2d/android/GameActivity.java

@@ -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();