mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-11 16:27:17 +01:00
remove the unused intent variable at event list widget
This commit is contained in:
parent
9bf5ef9588
commit
8c19b94d09
@ -48,7 +48,7 @@ ext {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.simplemobiletools:commons:2.38.2'
|
||||
compile 'com.simplemobiletools:commons:2.38.6'
|
||||
compile 'joda-time:joda-time:2.9.9'
|
||||
compile 'com.facebook.stetho:stetho:1.5.0'
|
||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||
|
@ -22,7 +22,7 @@ import com.simplemobiletools.commons.extensions.setTextSize
|
||||
import org.joda.time.DateTime
|
||||
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_HEADER = 1
|
||||
|
||||
|
@ -5,5 +5,5 @@ import android.widget.RemoteViewsService
|
||||
import com.simplemobiletools.calendar.adapters.EventListWidgetAdapter
|
||||
|
||||
class WidgetService : RemoteViewsService() {
|
||||
override fun onGetViewFactory(intent: Intent) = EventListWidgetAdapter(applicationContext, intent)
|
||||
override fun onGetViewFactory(intent: Intent) = EventListWidgetAdapter(applicationContext)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user