This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final todoManagerProvider = StateNotifier<TodoManager>((ref) { | |
return TodoManager(); | |
}); | |
class TodoManager extends StateNotifier<TodoFiles> { | |
TodoManager() : super(TodoFiles(<TodoFile>[])); | |
void addTodoFile(TodoFile todoFile) { | |
state = TodoFiles([...state.files, todoFile]); | |
print('addTodoFile: Now has ${state.files.length} files'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.carium.myhealth.data.network | |
import kotlinx.coroutines.CompletableDeferred | |
import kotlinx.coroutines.Deferred | |
import retrofit2.* | |
import java.lang.reflect.ParameterizedType | |
import java.lang.reflect.Type | |
class DeferredCallAdapterFactory private constructor() : CallAdapter.Factory() { | |
companion object { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
06-07 13:19:01.445 3853-3861/me.doubledutch.green E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. | |
java.lang.Throwable: Explicit termination method 'close' not called | |
at dalvik.system.CloseGuard.open(CloseGuard.java:180) | |
at android.database.CursorWindow.<init>(CursorWindow.java:111) | |
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198) | |
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:138) | |
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.radiumone.viame_android.memory; | |
import android.graphics.Bitmap; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; | |
import android.widget.ImageView; | |
import java.lang.ref.Reference; | |
import java.lang.ref.WeakReference; | |
/** |