mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 19:43:57 +00:00
fix: auto curve edges on resize
This commit is contained in:
@@ -8,6 +8,7 @@ import android.content.Intent
|
||||
import android.graphics.Color
|
||||
import android.graphics.drawable.GradientDrawable
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.widget.RemoteViews
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.content.res.ResourcesCompat
|
||||
@@ -48,6 +49,18 @@ class UpcomingWidget : AppWidgetProvider() {
|
||||
super.onDisabled(context)
|
||||
}
|
||||
|
||||
override fun onAppWidgetOptionsChanged(
|
||||
context: Context?,
|
||||
appWidgetManager: AppWidgetManager?,
|
||||
appWidgetId: Int,
|
||||
newOptions: Bundle?
|
||||
) {
|
||||
super.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions)
|
||||
if (context != null && appWidgetManager != null) {
|
||||
val views = updateAppWidget(context, appWidgetId)
|
||||
appWidgetManager.updateAppWidget(appWidgetId, views)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun updateAppWidget(
|
||||
|
||||
Reference in New Issue
Block a user