1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 19:15:50 +01:00

Revert "Revert "remove unused getPrimaryActivity() from coodinators, mark Mi Band HRX as non-heartrate""

This reverts commit 63231ec49a.

Please note that the comment of the reverted commit was inaccurate, as the Mi Band HRX was left untouched by it
and is left untouched byt this commit.
This commit is contained in:
Daniele Gobbetti 2018-07-27 15:13:21 +02:00
parent 63231ec49a
commit 2147ab4948
10 changed files with 0 additions and 57 deletions

View File

@ -123,15 +123,6 @@ public interface DeviceCoordinator {
@Nullable
Class<? extends Activity> getPairingActivity();
/**
* Returns the Activity class that will be used as the primary activity
* for the given device.
*
* @return the primary activity class, or null if none
*/
@Nullable
Class<? extends Activity> getPrimaryActivity();
/**
* Returns true if activity data fetching is supported by the device
* (with this coordinator).

View File

@ -112,11 +112,6 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
return ControlCenterv2.class;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return null;
}
@Override
public SampleProvider<?> getSampleProvider(GBDevice device, DaoSession session) {
return new UnknownSampleProvider();

View File

@ -113,11 +113,6 @@ public class HPlusCoordinator extends AbstractDeviceCoordinator {
return null;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return ChartsActivity.class;
}
@Override
public InstallHandler findInstallHandler(Uri uri, Context context) {
return null;

View File

@ -16,12 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.huami.miband2;
import android.app.Activity;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -76,9 +74,4 @@ public class MiBand2HRXCoordinator extends HuamiCoordinator {
return false;
}
@Nullable
@Override
public Class<? extends Activity> getPrimaryActivity() {
return null;
}
}

View File

@ -99,11 +99,6 @@ public class TeclastH30Coordinator extends AbstractDeviceCoordinator {
return null;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return ChartsActivity.class;
}
@Override
public InstallHandler findInstallHandler(Uri uri, Context context) {
return null;

View File

@ -54,11 +54,6 @@ public class LiveviewCoordinator extends AbstractDeviceCoordinator {
return null;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return null;
}
@Override
public InstallHandler findInstallHandler(Uri uri, Context context) {
return null;

View File

@ -110,11 +110,6 @@ public class MiBandCoordinator extends AbstractDeviceCoordinator {
return MiBandPairingActivity.class;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return ChartsActivity.class;
}
@Override
public SampleProvider<? extends AbstractActivitySample> getSampleProvider(GBDevice device, DaoSession session) {
return new MiBandSampleProvider(device, session);

View File

@ -82,12 +82,6 @@ public class No1F1Coordinator extends AbstractDeviceCoordinator {
return null;
}
@Nullable
@Override
public Class<? extends Activity> getPrimaryActivity() {
return ChartsActivity.class;
}
@Override
public boolean supportsActivityDataFetching() {
return true;

View File

@ -66,11 +66,6 @@ public class PebbleCoordinator extends AbstractDeviceCoordinator {
return PebblePairingActivity.class;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return AppManagerActivity.class;
}
@Override
protected void deleteDevice(@NonNull GBDevice gbDevice, @NonNull Device device, @NonNull DaoSession session) throws GBException {
Long deviceId = device.getId();

View File

@ -55,11 +55,6 @@ public class VibratissimoCoordinator extends AbstractDeviceCoordinator {
return null;
}
@Override
public Class<? extends Activity> getPrimaryActivity() {
return VibrationActivity.class;
}
@Override
public InstallHandler findInstallHandler(Uri uri, Context context) {
return null;