mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Small improvements
This commit is contained in:
parent
f50729240d
commit
e7d7d88bef
1 changed files with 10 additions and 4 deletions
|
@ -43,8 +43,18 @@ public class FragmentFolders extends FragmentEx {
|
||||||
private Group grpReady;
|
private Group grpReady;
|
||||||
private FloatingActionButton fab;
|
private FloatingActionButton fab;
|
||||||
|
|
||||||
|
private long account;
|
||||||
private AdapterFolder adapter;
|
private AdapterFolder adapter;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
// Get arguments
|
||||||
|
Bundle args = getArguments();
|
||||||
|
account = (args == null ? -1 : args.getLong("account"));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
|
@ -89,10 +99,6 @@ public class FragmentFolders extends FragmentEx {
|
||||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
|
|
||||||
// Get arguments
|
|
||||||
Bundle args = getArguments();
|
|
||||||
long account = (args == null ? -1 : args.getLong("account"));
|
|
||||||
|
|
||||||
DB db = DB.getInstance(getContext());
|
DB db = DB.getInstance(getContext());
|
||||||
|
|
||||||
// Observe account
|
// Observe account
|
||||||
|
|
Loading…
Reference in a new issue