Disable CPU plugin on archived devices
Summary: Changelog: CPU plugin will no longer show up for archived devices CPU plugin did show up on imported devices, but would always result in exceptions as no `adb` connection is available for them. Reviewed By: jknoxville Differential Revision: D26249575 fbshipit-source-id: c4fa7b3fec895f9c4ab9e31dce2f61fb23e9195b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eb302235cd
commit
7361ecc080
@@ -143,7 +143,11 @@ export default class CPUFrequencyTable extends FlipperDevicePlugin<
|
||||
};
|
||||
|
||||
static supportsDevice(device: Device) {
|
||||
return device.os === 'Android' && device.deviceType === 'physical';
|
||||
return (
|
||||
device.os === 'Android' &&
|
||||
device.deviceType === 'physical' &&
|
||||
!device.isArchived
|
||||
);
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user