Skip to content

Commit feaf140

Browse files
manoldonevdtopuzov
authored andcommitted
chore(android): update AndroidP sdk version check (#6093)
1 parent 6ce1d22 commit feaf140

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎tns-core-modules/ui/frame/fragment.transitions.android.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ interface ExpandedEntry extends BackstackEntry {
5151
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
5252
const intEvaluator = lazy(() => new android.animation.IntEvaluator());
5353
const defaultInterpolator = lazy(() => new android.view.animation.AccelerateDecelerateInterpolator());
54-
55-
// NOTE: Android P Beta SDK version returns 27, which is API level for Android 8.1
56-
// TODO: Update condition when Android P SDK version returns 28
57-
const isAndroidP = lazy(() => sdkVersion() >= 27);
54+
const isAndroidP = lazy(() => sdkVersion() > 27);
5855

5956
export const waitingQueue = new Map<number, Set<ExpandedEntry>>();
6057
export const completedEntries = new Map<number, ExpandedEntry>();
@@ -833,4 +830,4 @@ class DefaultTransition extends Transition {
833830
return getDefaultAnimation(false);
834831
}
835832
}
836-
}
833+
}

0 commit comments

Comments
 (0)