1
0
mirror of https://github.com/etesync/android synced 2024-12-23 15:18:14 +00:00

Bug fixes

* show "Settings" in Android Settings/Accounts again
This commit is contained in:
Ricki Hirner 2015-03-11 14:56:39 +01:00
parent 1acd2e1a55
commit be235c39b0
3 changed files with 8 additions and 7 deletions

View File

@ -33,7 +33,7 @@ import at.bitfire.davdroid.resource.LocalStorageException;
public class LocalCalendarTest extends InstrumentationTestCase {
private static final String
TAG = "davroid.LocalCalendarTest",
TAG = "davroid.test",
calendarName = "DAVdroid_Test";
ContentProviderClient providerClient;
@ -76,13 +76,13 @@ public class LocalCalendarTest extends InstrumentationTestCase {
providerClient = resolver.acquireContentProviderClient(CalendarContract.AUTHORITY);
long id;
@Cleanup Cursor cursor = providerClient.query(Calendars.CONTENT_URI,
new String[] { Calendars._ID },
new String[]{Calendars._ID},
Calendars.ACCOUNT_TYPE + "=? AND " + Calendars.NAME + "=?",
new String[] { CalendarContract.ACCOUNT_TYPE_LOCAL, calendarName },
new String[]{ CalendarContract.ACCOUNT_TYPE_LOCAL, calendarName },
null);
if (cursor.moveToNext()) {
if (cursor != null && cursor.moveToNext()) {
// found local test calendar
id = cursor.getLong(0);
Log.d(TAG, "Found test calendar with ID " + id);

View File

@ -113,6 +113,7 @@
<string name="login_password">Password:</string>
<!-- Settings activity -->
<string name="settings_title">Settings</string>
<string name="settings_no_accounts">No DAVdroid accounts found</string>
<string name="settings_authentication">Authentication</string>

View File

@ -9,10 +9,10 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceScreen android:title="@string/settings_title" >
<PreferenceScreen android:title="@string/settings_title">
<intent
android:targetPackage="at.bitfire.davdroid"
android:targetClass="at.bitfire.davdroid.syncadapter.SettingsActivity"
android:targetClass="at.bitfire.davdroid.ui.settings.SettingsActivity"
android:action="ACTION_VIEW" />
</PreferenceScreen>