mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-22 23:09:13 +00:00
Make sure the progressbars don't take up any space when hidden
This commit is contained in:
parent
d27d54f811
commit
ec67a27fa9
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ public class EntryHolder extends RecyclerView.ViewHolder {
|
||||||
_entry = entry;
|
_entry = entry;
|
||||||
|
|
||||||
// only show the progress bar if there is no uniform period and the entry type is TotpInfo
|
// 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) {
|
if (showProgress) {
|
||||||
_progressBar.setPeriod(((TotpInfo)entry.getInfo()).getPeriod());
|
_progressBar.setPeriod(((TotpInfo)entry.getInfo()).getPeriod());
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
|
||||||
_progressBar.setPeriod(_adapter.getUniformPeriod());
|
_progressBar.setPeriod(_adapter.getUniformPeriod());
|
||||||
startRefreshLoop();
|
startRefreshLoop();
|
||||||
} else {
|
} else {
|
||||||
_progressBar.setVisibility(View.INVISIBLE);
|
_progressBar.setVisibility(View.GONE);
|
||||||
stopRefreshLoop();
|
stopRefreshLoop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue