How to completely disable MultiWindow support in L

2019-02-20 09:41发布

问题:

I'm getting alot of memory allocations in my render thread and I've traced the cause to MultiWindow support which is weird because I have this feature disabled on my phone. I've added to AndroidManifest the following (based on this) code inside the application tag but with no luck, I still get unwanted memory allocations (only when I touch the screen):

<meta-data android:name="com.sec.android.support.multiwindow" android:value="false" />
<meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable"
            android:value="false" />

How can I completely disable the MultiWindow feature from inside the apk?