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

@@ -15,9 +15,12 @@
*/
package com.android.settings.inputmethod;
import android.app.Fragment;
import android.content.Intent;
import android.preference.PreferenceActivity;
import com.android.settings.ChooseLockPassword.ChooseLockPasswordFragment;
public class InputMethodAndSubtypeEnablerActivity extends PreferenceActivity {
@Override
public Intent getIntent() {
@@ -28,4 +31,11 @@ public class InputMethodAndSubtypeEnablerActivity extends PreferenceActivity {
}
return modIntent;
}
@Override
protected boolean isValidFragment(String fragmentName) {
if (InputMethodAndSubtypeEnabler.class.getName().equals(fragmentName)) return true;
return false;
}
}