Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 43 | Rev 45 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 43 Rev 44
Línea 418... Línea 418...
418
        notificationManager.createNotificationChannel(channel);
418
        notificationManager.createNotificationChannel(channel);
419
    }
419
    }
Línea 420... Línea 420...
420
 
420
 
421
 
421
 
422
    @Override
422
    @Override
Línea 423... Línea 423...
423
    public void showFcmNotification(String title, String body, int new_capsules, String url)
423
    public void showFcmNotification(String title, String body, int new_capsules, String url, Boolean content_refresh)
424
    {
424
    {
425
 
425
 
Línea 467... Línea 467...
467
            showMessageSnackBarWithClose(body);
467
            showMessageSnackBarWithClose(body);
468
            saveNotificationCenterNew("Nuevo contenido","",body);
468
            saveNotificationCenterNew("Nuevo contenido","",body);
Línea 469... Línea 469...
469
 
469
 
Línea -... Línea 470...
-
 
470
        }
-
 
471
 
-
 
472
        if(content_refresh) {
-
 
473
            preference.setRefreshContentRequired(content_refresh);
-
 
474
            preference.save();
Línea 470... Línea 475...
470
        }
475
        }
Línea 471... Línea 476...
471
 
476
 
472
 
477
 
Línea 2306... Línea 2311...
2306
 
2311
 
2307
                    if(!isForeground) {
2312
                    if(!isForeground) {
2308
                        String body = new_capsules == 1
2313
                        String body = new_capsules == 1
2309
                                ? "Hay 1 cápsula disponible"
2314
                                ? "Hay 1 cápsula disponible"
2310
                                : "Hay " + new_capsules + " cápsulas disponible";
2315
                                : "Hay " + new_capsules + " cápsulas disponible";
2311
                        showFcmNotification("Nuevo contenido", body, new_capsules, "");
2316
                        showFcmNotification("Nuevo contenido", body, new_capsules, "", false);
Línea 2312... Línea 2317...
2312
                    }
2317
                    }
2313
 
2318
 
2314
                    /*
2319
                    /*