Search in sources :

Example 1 with EntryEditFragment

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;
}
Also used : EntryEditFragment(com.faltenreich.diaguard.feature.entry.edit.EntryEditFragment)

Aggregations

EntryEditFragment (com.faltenreich.diaguard.feature.entry.edit.EntryEditFragment)1