Skip to content

Commit

Permalink
Fix rotation of transaction lists causes crash of application
Browse files Browse the repository at this point in the history
Fixes #664
  • Loading branch information
codinguser committed Apr 13, 2017
1 parent 07dc956 commit daf2e8b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ public void onItemSelected(AdapterView<?> parent, View view, int position, long
mTabLayout.addTab(mTabLayout.newTab().setText(R.string.section_header_transactions));
}
}
// Hide the favorite icon of the selected account to avoid clutter
((TextView) view).setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
if (view != null) {
// Hide the favorite icon of the selected account to avoid clutter
((TextView) view).setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
}
//refresh any fragments in the tab with the new account UID
refresh();
}
Expand Down

0 comments on commit daf2e8b

Please sign in to comment.