Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
96ab574d
Commit
96ab574d
authored
2 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Avoid refreshing the widgets on TV as it's useless
parent
73872324
No related branches found
No related tags found
1 merge request
!1381
Crash fixes
Pipeline
#222494
passed with stage
in 3 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
+2
-1
2 additions, 1 deletion
...src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
with
2 additions
and
1 deletion
application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
+
2
−
1
View file @
96ab574d
...
...
@@ -39,6 +39,7 @@ import org.videolan.mobile.app.delegates.IIndexersDelegate
import
org.videolan.mobile.app.delegates.IMediaContentDelegate
import
org.videolan.mobile.app.delegates.IndexersDelegate
import
org.videolan.mobile.app.delegates.MediaContentDelegate
import
org.videolan.resources.AndroidDevices
import
org.videolan.resources.AppContextProvider
import
org.videolan.resources.VLCInstance
import
org.videolan.tools.AppScope
...
...
@@ -97,7 +98,7 @@ class AppSetupDelegate : AppDelegate,
packageManager
.
setComponentEnabledSetting
(
ComponentName
(
this
@backgroundInit
,
SendCrashActivity
::
class
.
java
),
if
(
BuildConfig
.
BETA
)
PackageManager
.
COMPONENT_ENABLED_STATE_ENABLED
else
PackageManager
.
COMPONENT_ENABLED_STATE_DISABLED
,
PackageManager
.
DONT_KILL_APP
)
VersionMigration
.
migrateVersion
(
this
@backgroundInit
)
sendBroadcast
(
Intent
(
MiniPlayerAppWidgetProvider
.
ACTION_WIDGET_INIT
).
apply
{
if
(!
AndroidDevices
.
isAndroidTv
)
sendBroadcast
(
Intent
(
MiniPlayerAppWidgetProvider
.
ACTION_WIDGET_INIT
).
apply
{
component
=
ComponentName
(
appContextProvider
.
appContext
,
MiniPlayerAppWidgetProvider
::
class
.
java
)
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment