mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
renovate/google.api.drive
main
renovate/material
renovate/google.oauth2
renovate/major-firebase
renovate/kotlin
renovate/major-azure-ad-microsoft-authentication-library-for-android-monorepo
renovate/dev.zacsweers.redacted-1.x
renovate/com.android.billingclient-billing-ktx-8.x
renovate/grpc-java-monorepo
renovate/azure-ad-microsoft-authentication-library-for-android-monorepo
dependabot/bundler/rexml-3.4.2
update_actions
renovate/com.android.billingclient-billing-ktx-7.x
first_day_of_week
atd_image
remove_adapters
gtask_related_email
gh-pages
4.8.15
4.8.14
4.8.13
4.8.12
4.8.11
4.6.12
4.6.9
4.6.8.1
4.6.8
4.6.7
fork
4.6.6
4.0.2
4.0.1
4.0.0
3.8.5
3.8.5.1
3.8.4.4
3.8.4.2
3.8.4.1
3.8.3
3.8.2
3.8.0.2
3.8.0.1
3.8.0
3.7.7
3.7.6
3.7.5
3.7.4
3.7.3.1
3.7.3
3.7.2
3.7.1
3.7.0
3.6.3
3.6.1
3.6.0
3.5.0
3.4.0
3.3.6
3.3.3
3.3.0
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.0
3.1.0
3.0.6
3.0.4
3.0.3
3.0.2
3.0.0
2.14.4-limited
2.14.3
2.14.2
2.14.1
2.14.0
0.6.0-lite
10.0
10.0.1
10.0.2
10.0.3
10.1
10.2
10.3
10.4
10.4.1
11.0
11.0.1
11.1
11.1.1
11.10
11.10.1
11.10.2
11.11
11.12
11.12.1
11.12.2
11.12.3
11.13
11.2
11.2.1
11.2.2
11.3
11.3.1
11.3.2
11.3.3
11.3.4
11.4
11.5
11.5.1
11.6
11.6.1
11.7
11.8
11.9
11.9.1
11.9.2
12.0
12.1
12.2
12.3
12.4
12.5
12.6
12.6.1
12.7
12.7.1
13.0.1
13.0.2
13.1
13.1.1
13.1.2
13.10
13.11
13.11.1
13.11.2
13.2
13.2.1
13.2.2
13.2.3
13.2.4
13.3
13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.0.2
6.0.3
6.0.4
6.0.5
6.0.6
6.1
6.1.1
6.1.2
6.1.3
6.2
6.3
6.3.1
6.4
6.4.1
6.4.3
6.4.5
6.5
6.5.1
6.5.2
6.5.3
6.5.4
6.5.5
6.5.6
6.6
6.6.1
6.6.2
6.6.3
6.6.4
6.6.5
6.7
6.7.1
6.7.2
6.7.3
6.8
6.8.1
6.9
6.9.1
6.9.2
6.9.3
7.0
7.1
7.1.1
7.1.2
7.2
7.2.1
7.2.2
7.3
7.3.1
7.3.2
7.4
7.4.1
7.4.2
7.5
7.6
7.6.1
7.7
7.8
8.0
8.0.1
8.1
8.10
8.11
8.2
8.2.1
8.3
8.4
8.5
8.6
8.6.1
8.7
8.7.1
8.8
8.9
8.9.1
8.9.2
9.0
9.1
9.2
9.3
9.3.1
9.4
9.4.1
9.5
9.6
9.7
9.7.1
9.7.2
9.7.3
lite-0.5.0
lite-0.5.1
${ noResults }
13 lines
446 B
Java
13 lines
446 B
Java
package org.tasks.activities;
|
|
|
|
import org.tasks.caldav.CaldavClient;
|
|
import org.tasks.data.CaldavAccount;
|
|
import org.tasks.security.Encryption;
|
|
import org.tasks.ui.CompletableViewModel;
|
|
|
|
public class CreateCalendarViewModel extends CompletableViewModel<String> {
|
|
public void createCalendar(CaldavAccount caldavAccount, Encryption encryption, String name) {
|
|
run(() -> new CaldavClient(caldavAccount, encryption).makeCollection(name));
|
|
}
|
|
}
|