Search in sources :

Example 11 with Alarm

use of org.omnirom.deskclock.provider.Alarm in project android_packages_apps_OmniClock by omnirom.

the class AlarmClockFragment method cloneAlarm.

private void cloneAlarm(Alarm baseAlarm, int hourOfDay, int minute) {
    Alarm a = new Alarm(baseAlarm);
    a.hour = hourOfDay;
    a.minutes = minute;
    mAddedAlarm = a;
    asyncAddAlarm(a, false);
}
Also used : Alarm(org.omnirom.deskclock.provider.Alarm)

Aggregations

Alarm (org.omnirom.deskclock.provider.Alarm)11 ContentResolver (android.content.ContentResolver)4 Intent (android.content.Intent)2 View (android.view.View)2 AdapterView (android.widget.AdapterView)2 TextView (android.widget.TextView)2 Calendar (java.util.Calendar)2 AlarmInstance (org.omnirom.deskclock.provider.AlarmInstance)2 AlertDialog (android.app.AlertDialog)1 Context (android.content.Context)1 SharedPreferences (android.content.SharedPreferences)1 Uri (android.net.Uri)1 AsyncTask (android.os.AsyncTask)1 Button (android.widget.Button)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 SearchView (android.widget.SearchView)1 ArrayList (java.util.ArrayList)1 DaysOfWeek (org.omnirom.deskclock.provider.DaysOfWeek)1 ActionableToastBar (org.omnirom.deskclock.widget.ActionableToastBar)1