Go to keyserver settings directly

This commit is contained in:
Dominik Schürmann 2015-02-22 21:22:25 +01:00
parent d0be3bd7ea
commit 04740121a5
2 changed files with 4 additions and 6 deletions

View file

@ -21,6 +21,7 @@ import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.v4.app.Fragment;
import android.view.KeyEvent;
import android.view.LayoutInflater;
@ -110,11 +111,9 @@ public class ImportKeysCloudFragment extends Fragment {
mConfigButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(mImportActivity, SettingsActivity.class);
// GRR, for some reason I cant set the Action or I get an incomprehensible
// exception about modern two-pane layouts
// i.setAction(PreferencesActivity.ACTION_PREFS_CLOUD);
startActivity(i);
Intent intent = new Intent(mImportActivity, SettingsActivity.class);
intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.CloudSearchPrefsFragment.class.getName());
startActivity(intent);
}
});

View file

@ -183,7 +183,6 @@ public class SettingsActivity extends PreferenceActivity {
}
}
/* Called only on Honeycomb and later */
@Override
public void onBuildHeaders(List<Header> target) {
super.onBuildHeaders(target);