mProfileListAdapter.addEditingProfilesObserver(new Observer() {
@Override
public void update(Observable o, Object arg) {
+ final View profilesArrow = findViewById(R.id.nav_profiles_arrow);
if (mProfileListAdapter.isEditingProfiles()) {
- findViewById(R.id.nav_profiles_arrow).setVisibility(View.GONE);
- findViewById(R.id.nav_profiles_arrow).setAlpha(0f);
+ profilesArrow.clearAnimation();
+ profilesArrow.setVisibility(View.GONE);
+// findViewById(R.id.nav_profiles_arrow).setAlpha(0f);
findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.VISIBLE);
}
else {
- findViewById(R.id.nav_profiles_arrow).setVisibility(View.VISIBLE);
- findViewById(R.id.nav_profiles_arrow).setAlpha(1f);
+ profilesArrow.setVisibility(View.VISIBLE);
+// findViewById(R.id.nav_profiles_arrow).setAlpha(1f);
findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.GONE);
}
}