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:
parent
1acd2e1a55
commit
be235c39b0
@ -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;
|
||||
@ -78,11 +78,11 @@ public class LocalCalendarTest extends InstrumentationTestCase {
|
||||
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);
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user