mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Rename contentprovider
This commit is contained in:
parent
e9b1a395ff
commit
c32763d8d5
@ -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
|
||||
|
@ -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";
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user