Whitelist fragments appropriate for an activity
Change-Id: If4f8c4e9d9949b652946cffe0ebb09b587e5a042
This commit is contained in:
@@ -16,9 +16,12 @@
|
||||
|
||||
package com.android.settings.accounts;
|
||||
|
||||
import android.app.Fragment;
|
||||
import android.content.Intent;
|
||||
import android.preference.PreferenceActivity;
|
||||
|
||||
import com.android.settings.ChooseLockGeneric.ChooseLockGenericFragment;
|
||||
|
||||
/**
|
||||
* Launcher activity for the SyncSettings fragment.
|
||||
*
|
||||
@@ -31,4 +34,10 @@ public class SyncSettingsActivity extends PreferenceActivity {
|
||||
modIntent.putExtra(EXTRA_NO_HEADERS, true);
|
||||
return modIntent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isValidFragment(String fragmentName) {
|
||||
if (SyncSettings.class.getName().equals(fragmentName)) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user