- private void storeThemeIdInPrefs(int themeId) {
- // store the new theme id in the preferences
- SharedPreferences prefs = getPreferences(MODE_PRIVATE);
- SharedPreferences.Editor e = prefs.edit();
- e.putInt(PREF_THEME_ID, themeId);
- e.apply();
- }
- public void startEditProfileActivity(MobileLedgerProfile profile) {
- Intent intent = new Intent(this, ProfileDetailActivity.class);
- Bundle args = new Bundle();
- if (profile != null) {
- int index = Data.getProfileIndex(profile);
- if (index != -1)
- intent.putExtra(ProfileDetailFragment.ARG_ITEM_ID, index);
- }
- intent.putExtras(args);
- startActivity(intent, args);
- }