Download File
Download Project
Settings
Line Wrap
Themes
default
ambiance
bespin
dracula
eclipse
material
mbo
mdn-like
neat
solarized dark
ttcn
zenburn
UserRestrictionIndexableFragment.java
package com.afwsamples.testdpc.search; import android.content.Context; import com.afwsamples.testdpc.policy.UserRestriction; import com.afwsamples.testdpc.policy.UserRestrictionsDisplayFragment; import java.util.ArrayList; import java.util.List; public class UserRestrictionIndexableFragment extends BaseIndexableFragment { public UserRestrictionIndexableFragment() { super(UserRestrictionsDisplayFragment.class); } @Override public List
index(Context context) { List
preferenceIndices = new ArrayList<>(); for (UserRestriction userRestriction : UserRestriction.ALL_USER_RESTRICTIONS) { preferenceIndices.add(new PreferenceIndex( userRestriction.key, context.getString(userRestriction.titleResId), fragmentName)); } return preferenceIndices; } }