Showing
3 changed files
with
7 additions
and
0 deletions
| ... | ... | @@ -147,6 +147,7 @@ public class SwitchControlActivity extends AppCompatActivity { |
| 147 | 147 | subDevices.add(light); |
| 148 | 148 | device.setSubDevices(subDevices); |
| 149 | 149 | FistJni.getInstance().normalC(new Gson().toJson(device)); |
| 150 | +// FistJni.getInstance().sceneC("{\"CmdType\":0,\"ControllerId\":34916,\"DeviceIp\":[-74,92,-103,-38],\"DeviceKey\":[49,50,51,52,53,54],\"DeviceNum\":[-1,-1,-1,-1,0,-1],\"DevicePort\":3478,\"ErrorCode\":0,\"IsWan\":true,\"MappedIp\":[-38,88,29,83],\"MappedPort\":11606,\"SubDevices\":[{\"SubDeviceBit\":0,\"SubDeviceNum\":4294967151,\"SubDeviceOnlineStatus\":0,\"SubDeviceStatus\":1,\"SubDeviceType\":33}]}"); | |
| 150 | 151 | } |
| 151 | 152 | |
| 152 | 153 | ... | ... |
| ... | ... | @@ -127,21 +127,25 @@ public class BaseImageDecoder implements ImageDecoder { |
| 127 | 127 | switch (exifOrientation) { |
| 128 | 128 | case ExifInterface.ORIENTATION_FLIP_HORIZONTAL: |
| 129 | 129 | flip = true; |
| 130 | + break; | |
| 130 | 131 | case ExifInterface.ORIENTATION_NORMAL: |
| 131 | 132 | rotation = 0; |
| 132 | 133 | break; |
| 133 | 134 | case ExifInterface.ORIENTATION_TRANSVERSE: |
| 134 | 135 | flip = true; |
| 136 | + break; | |
| 135 | 137 | case ExifInterface.ORIENTATION_ROTATE_90: |
| 136 | 138 | rotation = 90; |
| 137 | 139 | break; |
| 138 | 140 | case ExifInterface.ORIENTATION_FLIP_VERTICAL: |
| 139 | 141 | flip = true; |
| 142 | + break; | |
| 140 | 143 | case ExifInterface.ORIENTATION_ROTATE_180: |
| 141 | 144 | rotation = 180; |
| 142 | 145 | break; |
| 143 | 146 | case ExifInterface.ORIENTATION_TRANSPOSE: |
| 144 | 147 | flip = true; |
| 148 | + break; | |
| 145 | 149 | case ExifInterface.ORIENTATION_ROTATE_270: |
| 146 | 150 | rotation = 270; |
| 147 | 151 | break; | ... | ... |
Please
register
or
login
to post a comment