mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 06:47:03 +03:00
Reactive a few tests
This commit is contained in:
parent
a4b8f8beb2
commit
4655285303
2 changed files with 156 additions and 146 deletions
File diff suppressed because one or more lines are too long
|
@ -25,9 +25,9 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuViewHolder> {
|
|||
@NonNull
|
||||
private MenuItem[] menuItems;
|
||||
@NonNull
|
||||
private Consumer<MenuItem> onClick;
|
||||
private final Consumer<MenuItem> onClick;
|
||||
@NonNull
|
||||
private Context context;
|
||||
private final Context context;
|
||||
|
||||
public MenuAdapter(@NonNull Context context, @NonNull Account account, @NonNull Consumer<MenuItem> onClick) {
|
||||
this.context = context;
|
||||
|
@ -67,7 +67,7 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuViewHolder> {
|
|||
}
|
||||
|
||||
@NonNull
|
||||
private Intent generateTrashbinIntent(@NonNull Account account) {
|
||||
private static Intent generateTrashbinIntent(@NonNull Account account) {
|
||||
return new Intent(Intent.ACTION_VIEW, Uri.parse(account.getUrl() + "/index.php/apps/files/?dir=/&view=trashbin"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue