Rename contentprovider

This commit is contained in:
Benedikt Elser 2018-07-09 21:28:51 +02:00
parent e9b1a395ff
commit c32763d8d5
3 changed files with 3 additions and 3 deletions

View File

@ -415,7 +415,7 @@
<provider
android:name=".contentprovider.HRContentProvider"
android:authorities="com.gadgetbridge.heartrate.provider"
android:authorities="org.gadgetbridge.realtimesamples.provider"
android:exported="true" />
<provider

View File

@ -17,7 +17,7 @@ public final class HRContentProviderContract {
public static final String[] activityColumnNames = new String[]{COLUMN_STATUS, COLUMN_MESSAGE};
public static final String[] realtimeColumnNames = new String[]{COLUMN_STATUS, COLUMN_HEARTRATE, COLUMN_STEPS, COLUMN_BATTERY};
static final String AUTHORITY = "com.gadgetbridge.heartrate.provider";
static final String AUTHORITY = "org.gadgetbridge.realtimesamples.provider";
static final String ACTIVITY_START_URL = "content://" + AUTHORITY + "/activity_start";
static final String ACTIVITY_STOP_URL = "content://" + AUTHORITY + "/activity_stop";

View File

@ -53,7 +53,7 @@ public class SampleProviderTest extends TestBase {
// Stuff context into provider
provider.attachInfo(app.getApplicationContext(), null);
ShadowContentResolver.registerProviderInternal("com.gadgetbridge.heartrate.provider", provider);
ShadowContentResolver.registerProviderInternal("org.gadgetbridge.realtimesamples.provider", provider);
}
@Test