Browse Source

Remove redundant GameActivity.getAssetManager()

Miku AuahDark 4 years ago
parent
commit
25de1b5de3
1 changed files with 1 additions and 6 deletions
  1. 1 6
      love/src/main/java/org/love2d/android/GameActivity.java

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

@@ -226,7 +226,7 @@ public class GameActivity extends SDLActivity {
         try {
             // If we have a game.love in our assets folder copy it to the cache folder
             // so that we can load it from native LÖVE code
-            AssetManager assetManager = getAssetManager();
+            AssetManager assetManager = getAssets();
             InputStream gameStream = assetManager.open("game.love");
 
             String destination_file = this.getCacheDir().getPath() + "/game.love";
@@ -543,11 +543,6 @@ public class GameActivity extends SDLActivity {
         return false;
     }
 
-    @Keep
-    public AssetManager getAssetManager() {
-        return getResources().getAssets();
-    }
-
     @Keep
     public String[] buildFileTree() {
         // Map key is path, value is directory flag