Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Nov 21, 2017
1 parent 0853578 commit 096105a
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class FilesystemListFragment extends BaseFragment {
public ListView _filesListView;

@BindView(R.id.filesystemlist__fragment__background_hint_text)
public TextView _background_hint_text;
public TextView _backgroundHintText;

private Context _context;
private View _view;
Expand Down Expand Up @@ -352,11 +352,13 @@ public void goDirectoryUp() {
}

private void showEmptyDirHintIfEmpty() {
if (_markorSingleton.isDirectoryEmpty(_filesCurrentlyShown)) {
_background_hint_text.setVisibility(View.VISIBLE);
_background_hint_text.setText(getString(R.string.empty_directory));
} else {
_background_hint_text.setVisibility(View.INVISIBLE);
if (isAdded()) {
if (_markorSingleton.isDirectoryEmpty(_filesCurrentlyShown)) {
_backgroundHintText.setVisibility(View.VISIBLE);
_backgroundHintText.setText(getString(R.string.empty_directory));
} else {
_backgroundHintText.setVisibility(View.INVISIBLE);
}
}
}

Expand Down

0 comments on commit 096105a

Please sign in to comment.