Skip to content

Commit 808b042

Browse files
Baseline NewApi issues am: f5c1b4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/21913526 Change-Id: Ibb51acd8d25a1a6b27be4798f19336af60f11744 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents 213f4d5 + f5c1b4c commit 808b042

1 file changed

Lines changed: 12 additions & 32 deletions

File tree

java/lint-baseline.xml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,56 +26,36 @@
2626
<issue
2727
id="NewApi"
2828
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
29-
errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
30-
errorLine2=" ~~~~~~~~~~~~~~~~">
29+
errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);"
30+
errorLine2=" ~~~~~~~~~~~~~~~~">
3131
<location
32-
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
33-
line="606"
34-
column="34"/>
32+
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
33+
line="69"
34+
column="49"/>
3535
</issue>
3636

3737
<issue
3838
id="NewApi"
39-
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
40-
errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
41-
errorLine2=" ~~~~~~~~~~~~~~~~">
39+
message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`">
4240
<location
4341
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
44-
line="804"
45-
column="34"/>
42+
line="1842"/>
4643
</issue>
4744

4845
<issue
4946
id="NewApi"
50-
message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"
51-
errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
52-
errorLine2=" ~~~~~~~~~">
47+
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`">
5348
<location
5449
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
55-
line="1823"
56-
column="33"/>
50+
line="605"/>
5751
</issue>
5852

5953
<issue
6054
id="NewApi"
61-
message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"
62-
errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
63-
errorLine2=" ~~~~~~~~~~~~~~~~~~">
55+
message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`">
6456
<location
6557
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
66-
line="1823"
67-
column="45"/>
68-
</issue>
69-
70-
<issue
71-
id="NewApi"
72-
message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
73-
errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);"
74-
errorLine2=" ~~~~~~~~~~~~~~~~">
75-
<location
76-
file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
77-
line="69"
78-
column="49"/>
58+
line="1842"/>
7959
</issue>
8060

81-
</issues>
61+
</issues>

0 commit comments

Comments
 (0)