17
17
18
18
package com .digits .sdk .android ;
19
19
20
+ import android .annotation .SuppressLint ;
21
+ import android .annotation .TargetApi ;
20
22
import android .app .Activity ;
21
23
import android .content .Intent ;
22
24
import android .os .Build ;
@@ -52,6 +54,7 @@ public void tearDown() throws Exception {
52
54
}
53
55
54
56
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .LOLLIPOP )
57
+ @ TargetApi (Build .VERSION_CODES .LOLLIPOP )
55
58
public void testVerifyMaterialDarkTheme () {
56
59
Digits .getInstance ().setTheme (android .R .style .Theme_Material );
57
60
final Activity activity = getActivity ();
@@ -60,6 +63,7 @@ public void testVerifyMaterialDarkTheme() {
60
63
}
61
64
62
65
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .LOLLIPOP )
66
+ @ TargetApi (Build .VERSION_CODES .LOLLIPOP )
63
67
public void testVerifyMaterialLightTheme () {
64
68
Digits .getInstance ().setTheme (android .R .style .Theme_Material_Light );
65
69
final Activity activity = getActivity ();
@@ -68,6 +72,7 @@ public void testVerifyMaterialLightTheme() {
68
72
}
69
73
70
74
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .LOLLIPOP )
75
+ @ TargetApi (Build .VERSION_CODES .LOLLIPOP )
71
76
public void testVerifyMaterialLightDarkActionBarTheme () {
72
77
Digits .getInstance ().setTheme (android .R .style .Theme_Material_Light_DarkActionBar );
73
78
final Activity activity = getActivity ();
@@ -76,6 +81,7 @@ public void testVerifyMaterialLightDarkActionBarTheme() {
76
81
}
77
82
78
83
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .ICE_CREAM_SANDWICH )
84
+ @ TargetApi (Build .VERSION_CODES .ICE_CREAM_SANDWICH )
79
85
public void testVerifyHoloDarkTheme () {
80
86
Digits .getInstance ().setTheme (android .R .style .Theme_Holo );
81
87
final Activity activity = getActivity ();
@@ -84,6 +90,7 @@ public void testVerifyHoloDarkTheme() {
84
90
}
85
91
86
92
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .ICE_CREAM_SANDWICH )
93
+ @ TargetApi (Build .VERSION_CODES .ICE_CREAM_SANDWICH )
87
94
public void testVerifyHoloLightTheme () {
88
95
Digits .getInstance ().setTheme (android .R .style .Theme_Holo_Light );
89
96
final Activity activity = getActivity ();
@@ -92,6 +99,7 @@ public void testVerifyHoloLightTheme() {
92
99
}
93
100
94
101
@ SdkSuppress (minSdkVersion = Build .VERSION_CODES .ICE_CREAM_SANDWICH )
102
+ @ TargetApi (Build .VERSION_CODES .ICE_CREAM_SANDWICH )
95
103
public void testVerifyHoloLightDarkActionBarTheme () {
96
104
Digits .getInstance ().setTheme (android .R .style .Theme_Holo_Light_DarkActionBar );
97
105
final Activity activity = getActivity ();
0 commit comments