Fix *.love file association in Nougat and later.

Note that the file association is rather hacky but I can't find any method
which is compatible in Nougat and later as file:// URI is banned there.
This commit is contained in:
Miku AuahDark
2019-07-10 12:10:36 +08:00
parent cd6463b4e4
commit f761e43904
2 changed files with 21 additions and 1 deletions
@@ -67,6 +67,10 @@ public class GameActivity extends SDLActivity {
Log.d("GameActivity", "Vibration disabled: could not get vibration permission.");
}
// These 2 variables must be reset or it will use the existing value.
gamePath = "";
storagePermissionUnnecessary = false;
handleIntent(this.getIntent());
super.onCreate(savedInstanceState);