Li Lei
Li Lei
In [app/src/mock/java/com/example/android/architecture/blueprints/todoapp/ServiceLocator.kt](https://github.com/googlesamples/android-architecture/blob/master/app/src/mock/java/com/example/android/architecture/blueprints/todoapp/ServiceLocator.kt),L43. Why repeat `tasksRepository ?:` in return? Can the return be simplified as `return tasksRepository ?: createTasksRepository(context)` ? ```kotlin fun provideTasksRepository(context: Context): TasksRepository { synchronized(this) { return tasksRepository ?:...
寸老师,求更新!
另外,寸老师可否推荐一些SPA方面的书籍文章,不胜感激!
## 相关问题:[Issues: ClassNotFoundException](https://github.com/didi/VirtualAPK/issues/313) `ComponentsHandler.java`中,对于插件传来的Intent,将其原有categories以`KEY_CATEGORY`保存在intent中,但是后续处理时并没有恢复,导致categories丢失。**请问这里是否有问题?** @superqiaopu ```java // ComponentsHandler.java public void markIntentIfNeeded(Intent intent) { if (intent.getComponent() == null) { return; } String targetPackageName = intent.getComponent().getPackageName(); String targetClassName = intent.getComponent().getClassName(); // search...
The method `addNewTask()` in `TasksViewModel.kt` is never used. Though commented "Called by the Data Binding library and the FAB's click listener." The click listener of FAB is set in `TasksFragment.kt`,...