File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3232import android .os .Bundle ;
3333import android .os .Handler ;
3434import android .os .Looper ;
35- import android .service .wallpaper .WallpaperService ;
36- import android .support .wearable .watchface .WatchFaceService ;
3735import android .view .LayoutInflater ;
3836import android .view .SurfaceHolder ;
3937import android .view .SurfaceView ;
4442import android .widget .RelativeLayout ;
4543import android .support .v4 .os .ResultReceiver ;
4644
45+ import android .service .wallpaper .WallpaperService ;
46+ import android .support .wearable .watchface .WatchFaceService ;
47+
4748import androidx .core .app .ActivityCompat ;
4849import androidx .core .content .ContextCompat ;
4950
@@ -90,15 +91,14 @@ public AppComponent getComponent() {
9091
9192 @ Override
9293 public Context getContext () {
93- return activity ;
94- /*if (component.getKind() == AppComponent.FRAGMENT) {
94+ if (component .getKind () == AppComponent .FRAGMENT ) {
9595 return activity ;
9696 } else if (component .getKind () == AppComponent .WALLPAPER ) {
9797 return wallpaper ;
9898 } else if (component .getKind () == AppComponent .WATCHFACE ) {
9999 return watchface ;
100100 }
101- */
101+ return null ;
102102 }
103103
104104
You can’t perform that action at this time.
0 commit comments