@Override
    protected void onDestroy() {
        super.onDestroy();
        getDelegate().onDestroy();
    }
A {@link android.preference.PreferenceActivity} which implements and proxies the necessary calls
to be used with AppCompat.
app/src/main/java/home/smart/fly/animations/AppCompatPreferenceActivity.java