diff options
author | Mahi Kolla <mahikolla@google.com> | 2021-06-09 18:37:39 +0000 |
---|---|---|
committer | Mahi Kolla <mahikolla@google.com> | 2021-06-09 18:37:39 +0000 |
commit | 862996214629065102ab8160c08c0aa0f77ab790 (patch) | |
tree | 8fb4fd149f7143a55ceafb2df357cd52a4b5a05c /src/com/android/calendar/CalendarApplication.kt | |
parent | 4e0357a4a49916c84877d8940e2cc63dce198da1 (diff) | |
download | Calendar-862996214629065102ab8160c08c0aa0f77ab790.tar.gz |
AOSP/Calendar - Add Kotlin copy of following files: AsyncQueryServiceHelper.java, CalendarApplication.java, CalendarBackupAgent.java
Test: none, no functional change in this commit when merged with corresponding Kotlin conversion.
Change-Id: I8a1a0aaa7f7b222342ea957951caff0094f10370
Diffstat (limited to 'src/com/android/calendar/CalendarApplication.kt')
-rw-r--r-- | src/com/android/calendar/CalendarApplication.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/com/android/calendar/CalendarApplication.kt b/src/com/android/calendar/CalendarApplication.kt new file mode 100644 index 00000000..d0ca4698 --- /dev/null +++ b/src/com/android/calendar/CalendarApplication.kt @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2007 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.calendar; + +import android.app.Application; + +public class CalendarApplication extends Application { + @Override + public void onCreate() { + super.onCreate(); + + /* + * Ensure the default values are set for any receiver, activity, + * service, etc. of Calendar + */ + GeneralPreferences.setDefaultValues(this); + } +} |