diff options
author | Sara Ting <sarating@google.com> | 2012-12-17 10:16:03 -0800 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2012-12-20 18:04:30 -0800 |
commit | f84b1a90cf76e7eff76affa17834377194caba8c (patch) | |
tree | 9726f822199c1c6d6be3eec60ca5c870d91f7246 /extensions_src/com/android/calendar | |
parent | 6f679272d6717646e4235cb6fb25f4f0f98ceb17 (diff) | |
download | android_packages_apps_Calendar-f84b1a90cf76e7eff76affa17834377194caba8c.tar.gz android_packages_apps_Calendar-f84b1a90cf76e7eff76affa17834377194caba8c.tar.bz2 android_packages_apps_Calendar-f84b1a90cf76e7eff76affa17834377194caba8c.zip |
Make this build in Eclipse
Changing up custom extension mechanism to enable building in Eclipse.
Change-Id: I519c162a852abda0cc2b6d0b3f3bd4e8f53b6ad7
Diffstat (limited to 'extensions_src/com/android/calendar')
-rw-r--r-- | extensions_src/com/android/calendar/extensions/AboutPreferences.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/extensions_src/com/android/calendar/extensions/AboutPreferences.java b/extensions_src/com/android/calendar/extensions/AboutPreferences.java deleted file mode 100644 index 43a15afa..00000000 --- a/extensions_src/com/android/calendar/extensions/AboutPreferences.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2010 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.extensions; - -import android.app.Activity; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager.NameNotFoundException; -import android.os.Bundle; -import android.preference.PreferenceFragment; - -import com.android.calendar.R; - -public class AboutPreferences extends PreferenceFragment { - private static final String BUILD_VERSION = "build_version"; - - @Override - public void onCreate(Bundle icicle) { - super.onCreate(icicle); - addPreferencesFromResource(R.xml.about_preferences); - - final Activity activity = getActivity(); - try { - final PackageInfo packageInfo = - activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0); - findPreference(BUILD_VERSION).setSummary(packageInfo.versionName); - } catch (NameNotFoundException e) { - findPreference(BUILD_VERSION).setSummary("?"); - } - } -}
\ No newline at end of file |