diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java index 4f8c162ca2b7554025fd4f5f98f51db113580187..f30d8de4058694eaacd89002ad2aa1961fe2eb37 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java @@ -2,8 +2,8 @@ * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. - * You may obtain an copy of the License at - + * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java index 5caf96b90570219c7a498121f4c5770cff82b8a3..c645d89844fd626105621c0e7790140b3a175702 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java @@ -2,8 +2,8 @@ * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. - * You may obtain an copy of the License at - + * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java index fb8628ab320160c10529e5dda4697689bf65ffed..a43681bbae36f00fdde0125ee9e8c8002962d256 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java @@ -2,8 +2,8 @@ * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. - * You may obtain an copy of the License at - + * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java index 54bb7c25a84db0a13970c1d0f0d979112d1a73ff..0b99cbcd1d39c1c437ad8ae080f3721fb9f9fd48 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java @@ -2,8 +2,8 @@ * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. - * You may obtain an copy of the License at - + * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software @@ -210,7 +210,6 @@ public class MainAbilitySlice extends AbilitySlice { Display display = DisplayManager.getInstance().getDefaultDisplay(getAbility()).get(); int width = display.getAttributes().width; AnimatorProperty animator = new AnimatorProperty(); - int widthTo = width / LogUtils.SAN * ERROR; animator.moveFromX(width).moveToX(0).alphaFrom(0).alpha(1).setDuration(WUBAI); return animator; } diff --git a/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java b/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java index 8d738044dcfa055aa336a61ca68ab80ebb42a350..514fef11862ad0b8ca2c3531437a628568c24b58 100644 --- a/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java +++ b/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java @@ -243,7 +243,7 @@ public class ShakeDetector implements ICategoryOrientationDataCallback { * * @since 2021-03-20 */ - public class SensorBundle { + public static class SensorBundle { /** * X轴上的加速度 */