Add @NonNull to intent in onStartCommand()

This commit is contained in:
Adeel Zafar 2019-08-15 16:30:52 +05:00
parent a93a508044
commit 5db8f9477e

View File

@ -69,7 +69,7 @@ public class HotspotService extends Service {
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
}
@Override public int onStartCommand(@Nullable Intent intent, int flags, int startId) {
@Override public int onStartCommand(@NonNull Intent intent, int flags, int startId) {
switch (intent.getAction()) {
case ACTION_IS_HOTSPOT_ENABLED: