Remove redundant GameActivity.getAssetManager()

This commit is contained in:
Miku AuahDark
2021-11-05 13:59:46 +08:00
parent ab850bfc5d
commit 25de1b5de3
@@ -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