mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Use ContentLoadingProgressBar
This commit is contained in:
@@ -23,7 +23,6 @@ import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
@@ -32,13 +31,14 @@ import java.util.List;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.Group;
|
||||
import androidx.core.widget.ContentLoadingProgressBar;
|
||||
import androidx.lifecycle.Observer;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
public class FragmentLogs extends FragmentEx {
|
||||
private RecyclerView rvLog;
|
||||
private ProgressBar pbWait;
|
||||
private ContentLoadingProgressBar pbWait;
|
||||
private Group grpReady;
|
||||
|
||||
private AdapterLog adapter;
|
||||
@@ -66,7 +66,7 @@ public class FragmentLogs extends FragmentEx {
|
||||
|
||||
// Initialize
|
||||
grpReady.setVisibility(View.GONE);
|
||||
pbWait.setVisibility(View.VISIBLE);
|
||||
pbWait.show();
|
||||
|
||||
return view;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ public class FragmentLogs extends FragmentEx {
|
||||
|
||||
adapter.set(logs);
|
||||
|
||||
pbWait.setVisibility(View.GONE);
|
||||
pbWait.hide();
|
||||
grpReady.setVisibility(View.VISIBLE);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user