love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
200 stars 70 forks source link

Crashed on HarmonyOS. #268

Closed PropherTone closed 5 months ago

PropherTone commented 5 months ago
 Intent intent = getIntent();
        // Prevent SDL sending filedropped event. Let us do that instead.
        setIntent(null);
        handleIntent(intent, true);

setIntent(null) will lead to crash on HarmonyOS,I commented out this line of code and it works well for now on HarmonyOS and other different customized android system.

Crash result intent.getHWflags() throw NullPointerException,this method are not native android framework,is from HarmonyOS's customized framework,I'm not very familiar with this,so that's all I can offer.