
[英]handleWindowVisibility: no activity for token android.os.BinderProxy
[英]“handleWindowVisibility: no activity for token android.os.BinderProxy” when starting and Activity from a FirestoreRecyclerAdapter
我正在尝试使用 Firestore 制作应用程序。 现在,我正在尝试显示包含一些汇总信息的列表,当您单击它时,我想在新活动中显示完整信息。
我的列表与 FirestoreRecyclerAdapter 一起工作正常,我正在尝试做新的活动。 但是活动显示一个空白屏幕。
我已经尝试直接在 ViewHolder 中使用单击侦听器,并使用我传递给构造函数的接口。
我还尝试不通过 Intent 上的任何入口,结果始终相同。
class CalendarEventHolder extends RecyclerView.ViewHolder {
private TextView textFechas;
private TextView textPlazas;
CalendarEventHolder(View itemView) {
super(itemView);
textFechas = itemView.findViewById(R.id.textview_hora);
textPlazas = itemView.findViewById(R.id.textview_plazas);
itemView.setOnClickListener(view -> {
int position = getAdapterPosition();
if (position != RecyclerView.NO_POSITION) {
Clase clase = FirestoreEntityFactory.getEntity(getSnapshots().getSnapshot(position), Clase.class);
/* if (listener != null) {
listener.clickItem(clase);
}*/
Bundle bundle = new Bundle();
bundle.putSerializable("clase", clase);
Intent intent = new Intent(itemView.getContext(), AsistenciasActivity.class);
intent.putExtras(bundle);
itemView.getContext().startActivity(intent);
}
});
}
}
结果是一个空白屏幕和一条警告消息,上面写着:
handleWindowVisibility: no activity for token android.os.BinderProxy@e14f85
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.