Quiet exception when extension files are not found
Capitalize Until
Change-Id: If8c90bba5029c490ca4b96c63c857465f5c8f0b6
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 59afee2..6c34533 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -703,7 +703,7 @@
<!-- Specifies that a repeating event to repeat until a certain date[CHAR LIMIT=25] -->
<string name="recurrence_end_date_label">Until a date</string>
<!-- Specifies that a repeating event to repeat until a certain date[CHAR LIMIT=25] -->
- <string name="recurrence_end_date">until <xliff:g id="date">%s</xliff:g></string>
+ <string name="recurrence_end_date">Until <xliff:g id="date">%s</xliff:g></string>
<!-- Specifies that a repeating event to repeat for a number of times[CHAR LIMIT=25] -->
<string name="recurrence_end_count_label">For a number of events</string>
diff --git a/src/com/android/calendar/ExtensionsFactory.java b/src/com/android/calendar/ExtensionsFactory.java
index 88ca8a9..aaf7b01 100644
--- a/src/com/android/calendar/ExtensionsFactory.java
+++ b/src/com/android/calendar/ExtensionsFactory.java
@@ -22,6 +22,7 @@
import android.view.Menu;
import android.view.MenuItem;
+import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
@@ -32,7 +33,8 @@
public class ExtensionsFactory {
private static String TAG = "ExtensionsFactory";
- // Config filename for mappings of various class names to their custom implementations.
+ // Config filename for mappings of various class names to their custom
+ // implementations.
private static String EXTENSIONS_PROPERTIES = "calendar_extensions.properties";
private static String ALL_IN_ONE_MENU_KEY = "AllInOneMenuExtensions";
@@ -45,9 +47,11 @@
InputStream fileStream = assetManager.open(EXTENSIONS_PROPERTIES);
sProperties.load(fileStream);
fileStream.close();
+ } catch (FileNotFoundException e) {
+ // No custom extensions. Ignore.
+ Log.d(TAG, "No custom extensions.");
} catch (IOException e) {
- // No custom extensions. Ignore.
- Log.d(TAG, "No custom extensions.", e);
+ Log.d(TAG, e.toString());
}
}