Sha256: aeb53c0918fcfad225bc4102ec98e9b5cec296f7edfa784114c94f315631cbf3

Contents?: true

Size: 947 Bytes

Versions: 17

Compression:

Stored size: 947 Bytes

Contents

package com.rho.notification;

import com.rhomobile.rhodes.Logger;

import android.app.IntentService;
import android.content.Intent;

public class NotificationIntentService extends IntentService {

    private static final String TAG = NotificationIntentService.class.getSimpleName();
    
    public NotificationIntentService() {
        super(TAG);
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        //Intent.
        Logger.T(TAG, "onHandleIntent");
        int notificationIdx = intent.getIntExtra(Notification.NOTIFICATION_ID, -1);
        int actionIdx = intent.getIntExtra(INotificationSingleton.HK_BUTTON_INDEX, -1);
        if (notificationIdx == -1 || actionIdx == -1) {
            Logger.E(TAG, "Notification Intent has no mandatory values.");
        }
        
        ((NotificationSingleton)(NotificationFactorySingleton.getInstance().getApiSingleton())).onAction(notificationIdx, actionIdx);
    }

}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-7.5.1 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-7.4.1 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-7.1.17 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-6.2.0 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-6.0.11 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.18 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.17 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.15 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.0.22 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.2 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.0.7 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.0.3 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
rhodes-5.5.0 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
tauplatform-1.0.3 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
tauplatform-1.0.2 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java
tauplatform-1.0.1 lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationIntentService.java