android-postfix-plugin icon indicating copy to clipboard operation
android-postfix-plugin copied to clipboard

.sysservice postfix commpletion

Open takahirom opened this issue 9 years ago • 0 comments

Android system service cast is cumbersome. I imagine a completion such as the following . Context.NOTIFICATION_SERVICE.sysservice to (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

You can get map that system service name to class name in the following. https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/ServiceCastDetector.java#130

takahirom avatar Oct 04 '15 04:10 takahirom