Notification Click Handling #2
This commit is contained in:
@@ -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);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user