tvbarthel / BlurDialogFragment

Library project to display DialogFragment with a blur effect.
Apache License 2.0
2.09k stars 334 forks source link

allowBackup="true" #38

Closed edward-s closed 9 years ago

edward-s commented 9 years ago

Hi,

is there any reason why you are setting the allowBackup to true in the AndroidManifest.xml?

company policy requires me to set this flag as false

vbarthel-fr commented 9 years ago

Nice catch !

We will set the allowBackup attribute to false in the next release.

Thanks =)

edward-s commented 9 years ago

thank you looking forward to it

vbarthel-fr commented 9 years ago

Hi @edward-s

I did not have the time to update the library, but here is a solution to set the allowBackup flag to false. It simply relies on the "replace" attributs:

<?xml version="1.0" encoding="utf-8"?>
<manifest
    package="com.your.package"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        android:allowBackup="false"
        tools:replace="allowBackup">

        ...

    </application>

</manifest>

I have just tested this solution on one of my project, and it seems to work perfectly. Please let me know if this also works for you =)

Happy coding,

Vincent.

[Edit] I will keep this issue opened until we fix it in the next release. It might be useful to other people =)