Skip to content

Commit

Permalink
Fix empty text at MainActivity, fixes gsantner#48
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Oct 1, 2017
1 parent 1bae7c1 commit b774c28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ public boolean handleBarClick(MenuItem item) {

case R.id.action_mode_create: {
_currentMainMode = 0;
_emptylistText.setText(getString(R.string.main__nodata__custom_templates, getString(R.string.custom_templates_visual)));
selectTab(app.settings.getLastSelectedTab(), app.settings.getDefaultMainMode());
_toolbar.setTitle(R.string.app_name);
break;
Expand Down Expand Up @@ -488,6 +487,7 @@ public void openImageViewActivityWithImage(String imagePath) {
public void onTabSelected(TabLayout.Tab tab) {
int tabPos = tab.getPosition();
List<MemeData.Image> imageList = new ArrayList<>();
_emptylistText.setText(getString(R.string.main__nodata__custom_templates, getString(R.string.custom_templates_visual)));

if (tabPos >= 0 && tabPos < _tagKeys.length) {
imageList = MemeData.getImagesWithTag(_tagKeys[tabPos]);
Expand Down

0 comments on commit b774c28

Please sign in to comment.