use of com.faltenreich.diaguard.feature.entry.edit.EntryEditFragment in project Diaguard by Faltenreich.
the class Shortcuts method handleShortcut.
public static boolean handleShortcut(Navigating navigating, Intent intent) {
if (intent != null && intent.getAction() != null) {
String action = intent.getAction();
Shortcut shortcut = Shortcut.forAction(action);
if (shortcut == Shortcut.CREATE_ENTRY) {
navigating.openFragment(new EntryEditFragment(), true);
return true;
}
}
return false;
}
Aggregations