remove the unused intent variable at event list widget

This commit is contained in:
tibbi 2017-11-10 21:21:40 +01:00
parent 9bf5ef9588
commit 8c19b94d09
3 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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

View File

@ -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)
}