mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-08 10:08:51 -06:00
Compare commits
1 Commits
961fb7618f
...
release/2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
ec1f0c5356
|
@@ -57,7 +57,6 @@ internal class StackRemoteViewsFactory(private val context: Context, intent: Int
|
|||||||
)
|
)
|
||||||
private val habitIds: LongArray
|
private val habitIds: LongArray
|
||||||
private val widgetType: StackWidgetType
|
private val widgetType: StackWidgetType
|
||||||
private var remoteViews = ArrayList<RemoteViews>()
|
|
||||||
override fun onCreate() {}
|
override fun onCreate() {}
|
||||||
override fun onDestroy() {}
|
override fun onDestroy() {}
|
||||||
override fun getCount(): Int {
|
override fun getCount(): Int {
|
||||||
@@ -89,7 +88,7 @@ internal class StackRemoteViewsFactory(private val context: Context, intent: Int
|
|||||||
|
|
||||||
override fun getViewAt(position: Int): RemoteViews? {
|
override fun getViewAt(position: Int): RemoteViews? {
|
||||||
Log.i("StackRemoteViewsFactory", "getViewAt $position started")
|
Log.i("StackRemoteViewsFactory", "getViewAt $position started")
|
||||||
if (position < 0 || position >= remoteViews.size) return null
|
if (position < 0 || position >= habitIds.size) return null
|
||||||
val app = context.applicationContext as HabitsApplication
|
val app = context.applicationContext as HabitsApplication
|
||||||
val prefs = app.component.preferences
|
val prefs = app.component.preferences
|
||||||
val habitList = app.component.habitList
|
val habitList = app.component.habitList
|
||||||
|
|||||||
Reference in New Issue
Block a user