Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c96642d authored by cketti's avatar cketti
Browse files

Move UnreadWidgetProvider back to old location

parent 8d8a7b1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@
        </receiver>

        <receiver
            android:name=".widget.unread.UnreadWidgetProvider"
            android:name=".provider.UnreadWidgetProvider"
            android:icon="@drawable/ic_launcher"
            android:label="@string/unread_widget_label">
            <intent-filter>
+12 −1
Original line number Diff line number Diff line
package com.fsck.k9.widget.unread
package com.fsck.k9.provider

import android.app.PendingIntent
import android.appwidget.AppWidgetManager
@@ -10,8 +10,19 @@ import android.widget.RemoteViews
import com.fsck.k9.EarlyInit
import com.fsck.k9.R
import com.fsck.k9.inject
import com.fsck.k9.widget.unread.UnreadWidgetConfigurationActivity
import com.fsck.k9.widget.unread.UnreadWidgetData
import com.fsck.k9.widget.unread.UnreadWidgetRepository
import timber.log.Timber

/**
 * Unread home screen widget "provider"
 *
 * IMPORTANT: This class must not be renamed or moved, otherwise unread widgets added to the home screen using an older
 * version of the app will stop working.
 *
 * The rest of the unread widget specific code can be found in the package [com.fsck.k9.widget.unread].
 */
class UnreadWidgetProvider : AppWidgetProvider(), EarlyInit {
    private val repository: UnreadWidgetRepository by inject()

+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import android.appwidget.AppWidgetManager
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import com.fsck.k9.provider.UnreadWidgetProvider

class UnreadWidgetUpdater(private val context: Context) {
    private val appWidgetManager = AppWidgetManager.getInstance(context)