Whitelist fragments appropriate for an activity

Change-Id: If4f8c4e9d9949b652946cffe0ebb09b587e5a042
This commit is contained in:
Amith Yamasani
2013-07-26 13:38:41 -07:00
parent 040ce60582
commit a677ee210c
12 changed files with 153 additions and 1 deletions

View File

@@ -76,6 +76,12 @@ public class ConfirmLockPattern extends PreferenceActivity {
return modIntent;
}
@Override
protected boolean isValidFragment(String fragmentName) {
if (ConfirmLockPatternFragment.class.getName().equals(fragmentName)) return true;
return false;
}
public static class ConfirmLockPatternFragment extends Fragment {
// how long we wait to clear a wrong pattern