From b4f7688903cbb3a601045b3d851a8b62987cbc34 Mon Sep 17 00:00:00 2001 From: Marian Hello Date: Thu, 8 Nov 2018 14:11:16 +0100 Subject: [PATCH] make sync account name configurable (fixes #18) --- src/main/java/com/marianhello/bgloc/ResourceResolver.java | 5 ++--- src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/marianhello/bgloc/ResourceResolver.java b/src/main/java/com/marianhello/bgloc/ResourceResolver.java index a341d7bc..ca2eabf1 100644 --- a/src/main/java/com/marianhello/bgloc/ResourceResolver.java +++ b/src/main/java/com/marianhello/bgloc/ResourceResolver.java @@ -1,14 +1,13 @@ package com.marianhello.bgloc; import android.content.Context; -import android.net.Uri; /** * Created by finch on 19/07/16. */ public class ResourceResolver { - private static final String ACCOUNT_NAME = "dummy"; + private static final String ACCOUNT_NAME_RESOURCE = "account_name"; private static final String ACCOUNT_TYPE_RESOURCE = "account_type"; private static final String AUTHORITY_TYPE_RESOURCE = "content_authority"; @@ -38,7 +37,7 @@ public String getString(String name) { } public String getAccountName() { - return ACCOUNT_NAME; + return getString(ACCOUNT_NAME_RESOURCE); } public String getAccountType() { diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 2b938a08..f25c99d1 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -1,4 +1,5 @@ app_name + Locations \ No newline at end of file