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 32
32
import android .os .Bundle ;
33
33
import android .os .Handler ;
34
34
import android .os .Looper ;
35
- import android .service .wallpaper .WallpaperService ;
36
- import android .support .wearable .watchface .WatchFaceService ;
37
35
import android .view .LayoutInflater ;
38
36
import android .view .SurfaceHolder ;
39
37
import android .view .SurfaceView ;
44
42
import android .widget .RelativeLayout ;
45
43
import android .support .v4 .os .ResultReceiver ;
46
44
45
+ import android .service .wallpaper .WallpaperService ;
46
+ import android .support .wearable .watchface .WatchFaceService ;
47
+
47
48
import androidx .core .app .ActivityCompat ;
48
49
import androidx .core .content .ContextCompat ;
49
50
@@ -90,15 +91,14 @@ public AppComponent getComponent() {
90
91
91
92
@ Override
92
93
public Context getContext () {
93
- return activity ;
94
- /*if (component.getKind() == AppComponent.FRAGMENT) {
94
+ if (component .getKind () == AppComponent .FRAGMENT ) {
95
95
return activity ;
96
96
} else if (component .getKind () == AppComponent .WALLPAPER ) {
97
97
return wallpaper ;
98
98
} else if (component .getKind () == AppComponent .WATCHFACE ) {
99
99
return watchface ;
100
100
}
101
- */
101
+ return null ;
102
102
}
103
103
104
104
You can’t perform that action at this time.
0 commit comments