Whitelist fragments appropriate for an activity
Change-Id: If4f8c4e9d9949b652946cffe0ebb09b587e5a042
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user