barDrawerToggle = null;
if (mViewPager != null) mViewPager.removeOnPageChangeListener(pageChangeListener);
pageChangeListener = null;
- if (mProfileListAdapter != null) mProfileListAdapter.deleteEditingProfilesObserver(editingProfilesObserver);
+ if (mProfileListAdapter != null)
+ mProfileListAdapter.deleteEditingProfilesObserver(editingProfilesObserver);
editingProfilesObserver = null;
super.onDestroy();
}
}
if (barDrawerToggle == null) {
- barDrawerToggle = new ActionBarDrawerToggle(this, drawer, mToolbar, R.string.navigation_drawer_open,
- R.string.navigation_drawer_close);
+ barDrawerToggle = new ActionBarDrawerToggle(this, drawer, mToolbar,
+ R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.addDrawerListener(barDrawerToggle);
}
barDrawerToggle.syncState();
markDrawerItemCurrent(R.id.nav_latest_transactions);
break;
default:
- Log.e("MainActivity", String.format("Unexpected page index %d", position));
+ Log.e("MainActivity",
+ String.format("Unexpected page index %d", position));
}
super.onPageSelected(position);
profileListHeadArrow.setVisibility(View.VISIBLE);
profileListHeadCancel.setVisibility(View.GONE);
profileListHeadMore.setVisibility(View.GONE);
- profileListHeadMore.setVisibility(profileListExpanded ? View.VISIBLE : View.GONE);
+ profileListHeadMore
+ .setVisibility(profileListExpanded ? View.VISIBLE : View.GONE);
}
};
mProfileListAdapter.addEditingProfilesObserver(editingProfilesObserver);
.setIcon(Icon.createWithResource(this, R.drawable.svg_thick_plus_white))
.setIntent(new Intent(Intent.ACTION_VIEW, null, this,
NewTransactionActivity.class).putExtra("profile_uuid", p.getUuid()))
- .setRank(i)
- .build();
+ .setRank(i).build();
shortcuts.add(si);
}
}