Make sure the progressbars don't take up any space when hidden

This commit is contained in:
Alexander Bakker 2018-06-07 00:21:52 +02:00
parent d27d54f811
commit ec67a27fa9
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ public class EntryHolder extends RecyclerView.ViewHolder {
_entry = entry;
// only show the progress bar if there is no uniform period and the entry type is TotpInfo
_progressBar.setVisibility(showProgress ? View.VISIBLE : View.INVISIBLE);
_progressBar.setVisibility(showProgress ? View.VISIBLE : View.GONE);
if (showProgress) {
_progressBar.setPeriod(((TotpInfo)entry.getInfo()).getPeriod());
}

View file

@ -82,7 +82,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
_progressBar.setPeriod(_adapter.getUniformPeriod());
startRefreshLoop();
} else {
_progressBar.setVisibility(View.INVISIBLE);
_progressBar.setVisibility(View.GONE);
stopRefreshLoop();
}
}