remove the unused intent variable at event list widget
This commit is contained in:
parent
9bf5ef9588
commit
8c19b94d09
|
@ -48,7 +48,7 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.simplemobiletools:commons:2.38.2'
|
compile 'com.simplemobiletools:commons:2.38.6'
|
||||||
compile 'joda-time:joda-time:2.9.9'
|
compile 'joda-time:joda-time:2.9.9'
|
||||||
compile 'com.facebook.stetho:stetho:1.5.0'
|
compile 'com.facebook.stetho:stetho:1.5.0'
|
||||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||||
|
|
|
@ -22,7 +22,7 @@ import com.simplemobiletools.commons.extensions.setTextSize
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class EventListWidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsService.RemoteViewsFactory {
|
class EventListWidgetAdapter(val context: Context) : RemoteViewsService.RemoteViewsFactory {
|
||||||
private val ITEM_EVENT = 0
|
private val ITEM_EVENT = 0
|
||||||
private val ITEM_HEADER = 1
|
private val ITEM_HEADER = 1
|
||||||
|
|
||||||
|
|
|
@ -5,5 +5,5 @@ import android.widget.RemoteViewsService
|
||||||
import com.simplemobiletools.calendar.adapters.EventListWidgetAdapter
|
import com.simplemobiletools.calendar.adapters.EventListWidgetAdapter
|
||||||
|
|
||||||
class WidgetService : RemoteViewsService() {
|
class WidgetService : RemoteViewsService() {
|
||||||
override fun onGetViewFactory(intent: Intent) = EventListWidgetAdapter(applicationContext, intent)
|
override fun onGetViewFactory(intent: Intent) = EventListWidgetAdapter(applicationContext)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue