File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
app/src/main/java/com/tasomaniac/devwidget/app
widget/src/main/kotlin/com/tasomaniac/devwidget/widget Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1414import com .tasomaniac .devwidget .extensions .SchedulingStrategy ;
1515import com .tasomaniac .devwidget .settings .Version ;
1616
17- import androidx .core .content .ContextCompat ;
1817import dagger .Binds ;
1918import dagger .Module ;
2019import dagger .Provides ;
@@ -37,7 +36,7 @@ static PackageManager packageManager(Application app) {
3736
3837 @ Provides
3938 static PowerManager powerManager (Application app ) {
40- return ContextCompat .getSystemService (app , PowerManager . class );
39+ return ( PowerManager ) app .getSystemService (Context . POWER_SERVICE );
4140 }
4241
4342 @ Provides
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import com.tasomaniac.devwidget.widget.click.HeaderOptionsActivity
2121import com.tasomaniac.devwidget.widget.click.WidgetRefreshActivity
2222import javax.inject.Inject
2323
24- internal class RemoteViewsCreator (
24+ class RemoteViewsCreator internal constructor (
2525 private val app : Application ,
2626 private val widgetResources : WidgetResources ,
2727 private val opacityPreferences : OpacityPreferences ,
@@ -136,7 +136,7 @@ internal class RemoteViewsCreator(
136136 return backgroundColor and 0xffffff or (opacity * 255 / 100 shl 24 )
137137 }
138138
139- class Factory @Inject constructor(
139+ class Factory @Inject internal constructor(
140140 private val app : Application ,
141141 private val widgetResources : WidgetResources ,
142142 private val opacityPreferences : OpacityPreferences
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import dagger.android.ContributesAndroidInjector
99abstract class WidgetBindingsModule {
1010
1111 @Binds
12- internal abstract fun widgetUpdater (widgetUpdater : WidgetUpdaterImpl ): WidgetUpdater
12+ abstract fun widgetUpdater (widgetUpdater : WidgetUpdaterImpl ): WidgetUpdater
1313
1414 @ContributesAndroidInjector
1515 internal abstract fun widgetProvider (): WidgetProvider
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import io.reactivex.annotations.CheckReturnValue
1212import java.util.concurrent.TimeUnit
1313import javax.inject.Inject
1414
15- internal class WidgetUpdaterImpl @Inject constructor(
15+ class WidgetUpdaterImpl @Inject internal constructor(
1616 override val appWidgetManager : AppWidgetManager ,
1717 private val app : Application ,
1818 private val remoteViewsCreatorFactory : RemoteViewsCreator .Factory ,
You can’t perform that action at this time.
0 commit comments