Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
This commit is contained in:
@@ -1139,7 +1139,7 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
mService.getContentResolver().unregisterContentObserver(this);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
private boolean shouldShowImeWithHardKeyboard() {
|
||||
// Lazily initialize as needed.
|
||||
if (mShowImeWithHardKeyboard == ShowImeWithHardKeyboardType.UNKNOWN) {
|
||||
@@ -1179,7 +1179,7 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
return "SettingsObserver{mShowImeWithHardKeyboard=" + mShowImeWithHardKeyboard + "}";
|
||||
}
|
||||
}
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
private SettingsObserver mSettingsObserver;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user