Notification Click Handling #2

This commit is contained in:
Caesar2011
2019-02-05 17:41:43 +01:00
parent d67542d93a
commit c5fc592169
2 changed files with 3 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ public class MainActivity extends AppCompatActivity
CustomNotificationManager.createNotificationChannel(this); CustomNotificationManager.createNotificationChannel(this);
/*getKVV().modules().list().recv(list -> { /*getKVV().modules().list().recv(list -> {
Modules.Module module = list.getByIndex(0); Modules.Module module = list.getByIndex(0);
CustomNotificationManager.sendNotification(this, "Test", module.title, FRAGMENT_MODULES_DETAILS, module.getID()+"."+ModulePart.getPageByPart(ModulePart.ASSIGNMENT)); CustomNotificationManager.sendNotification(this, "Test", module.title, FRAGMENT_MODULES_DETAILS, module.getID()+"."+ModulePart.getPageByPart(ModulePart.EVENT));
}, log::e);*/ }, log::e);*/
} }

View File

@@ -30,7 +30,6 @@ import de.sebse.fuplanner.tools.UtilsDate;
import de.sebse.fuplanner.tools.logging.Logger; import de.sebse.fuplanner.tools.logging.Logger;
import static de.sebse.fuplanner.MainActivity.FRAGMENT_MODULES_DETAILS; import static de.sebse.fuplanner.MainActivity.FRAGMENT_MODULES_DETAILS;
import static de.sebse.fuplanner.MainActivity.FRAGMENT_STARTUP;
public class KVVSyncAdapter extends AbstractThreadedSyncAdapter { public class KVVSyncAdapter extends AbstractThreadedSyncAdapter {
private KVV mKVV; private KVV mKVV;
@@ -150,11 +149,11 @@ public class KVVSyncAdapter extends AbstractThreadedSyncAdapter {
} }
} }
if (!found) { if (!found) {
CustomNotificationManager.sendNotification(getContext(), getContext().getString(addRes, title), titleInterface.get(newEntry), FRAGMENT_STARTUP, targetData); CustomNotificationManager.sendNotification(getContext(), getContext().getString(addRes, title), titleInterface.get(newEntry), FRAGMENT_MODULES_DETAILS, targetData);
} }
} }
for (T oldEntry: obsoletes) { for (T oldEntry: obsoletes) {
CustomNotificationManager.sendNotification(getContext(), getContext().getString(removeRes, title), titleInterface.get(oldEntry), FRAGMENT_STARTUP, targetData); CustomNotificationManager.sendNotification(getContext(), getContext().getString(removeRes, title), titleInterface.get(oldEntry), FRAGMENT_MODULES_DETAILS, targetData);
} }
} }