Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33171c7f authored by Michael Chan's avatar Michael Chan
Browse files

Quiet exception when extension files are not found

Capitalize Until

Change-Id: If8c90bba5029c490ca4b96c63c857465f5c8f0b6
parent b3ecc700
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>

+7 −3
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.util.Log;
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 @@ import java.util.Properties;
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 @@ public class ExtensionsFactory {
            InputStream fileStream = assetManager.open(EXTENSIONS_PROPERTIES);
            sProperties.load(fileStream);
            fileStream.close();
        } catch (IOException e) {
        } catch (FileNotFoundException e) {
            // No custom extensions. Ignore.
            Log.d(TAG, "No custom extensions.", e);
            Log.d(TAG, "No custom extensions.");
        } catch (IOException e) {
            Log.d(TAG, e.toString());
        }
    }