File tree 1 file changed +5
-1
lines changed
iterableapi/src/main/java/com/iterable/iterableapi
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3
3
import android .app .Activity ;
4
4
import android .app .Application ;
5
5
import android .content .Context ;
6
+ import android .os .Build ;
6
7
import android .os .Bundle ;
7
8
import android .os .Handler ;
8
9
import android .os .Looper ;
@@ -56,7 +57,10 @@ public void onActivityStarted(Activity activity) {
56
57
@ Override
57
58
public void onActivityResumed (Activity activity ) {
58
59
currentActivity = new WeakReference <>(activity );
59
- if (!inForeground ) {
60
+ final String AMAZON_FEATURE_FIRE_TV = "amazon.hardware.fire_tv" ;
61
+ String AMAZON_MODEL = Build .MODEL ;
62
+
63
+ if (!inForeground || AMAZON_MODEL .matches ("AFTN" ) || activity .getPackageManager ().hasSystemFeature (AMAZON_FEATURE_FIRE_TV )) {
60
64
inForeground = true ;
61
65
for (WeakReference <AppStateCallback > callback : callbacks ) {
62
66
if (callback .get () != null ) {
You can’t perform that action at this time.
0 commit comments