Skip to content

Commit

Permalink
make sync account name configurable (fixes #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauron85 committed Nov 8, 2018
1 parent db71dbc commit b4f7688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/marianhello/bgloc/ResourceResolver.java
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -38,7 +37,7 @@ public String getString(String name) {
}

public String getAccountName() {
return ACCOUNT_NAME;
return getString(ACCOUNT_NAME_RESOURCE);
}

public String getAccountType() {
Expand Down
1 change: 1 addition & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">app_name</string>
<string name="account_name">Locations</string>
</resources>

0 comments on commit b4f7688

Please sign in to comment.