protected boolean isValidFragment(String fragmentName) {
        return PreferenceFragment.class.getName().equals(fragmentName)
                || GeneralPreferenceFragment.class.getName().equals(fragmentName)
                || DataSyncPreferenceFragment.class.getName().equals(fragmentName)
                || NotificationPreferenceFragment.class.getName().equals(fragmentName);
    }
This method stops fragment injection in malicious applications.
Make sure to deny any unknown fragments here.
app/src/main/java/home/smart/fly/animations/SettingsActivity.java