From 49b7a55ff2b34245ac31b81e7444a66f94743a40 Mon Sep 17 00:00:00 2001 From: xuechangfeng <963779172@qq.com> Date: Thu, 8 Jul 2021 17:08:33 +0800 Subject: [PATCH] =?UTF-8?q?7.8=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tylersuehr/chipexample/MainAbility.java | 14 ++++++++++++++ .../com/tylersuehr/chipexample/MyApplication.java | 14 ++++++++++++++ .../chipexample/slice/MainAbilitySlice.java | 11 +++-------- .../chipexample/utils/KeyboardVisibilityEvent.java | 3 +-- .../utils/KeyboardVisibilityEventListener.java | 3 +-- .../chipexample/utils/SimpleUnregistrar.java | 3 +-- .../tylersuehr/chipexample/utils/Unregistrar.java | 3 +-- 7 files changed, 35 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/com/tylersuehr/chipexample/MainAbility.java b/app/src/main/java/com/tylersuehr/chipexample/MainAbility.java index 2a7cdfe..f4fb6c5 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/MainAbility.java +++ b/app/src/main/java/com/tylersuehr/chipexample/MainAbility.java @@ -1,3 +1,17 @@ +/* + * 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 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 + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.tylersuehr.chipexample; import com.tylersuehr.chipexample.slice.MainAbilitySlice; diff --git a/app/src/main/java/com/tylersuehr/chipexample/MyApplication.java b/app/src/main/java/com/tylersuehr/chipexample/MyApplication.java index 4a40d77..6603e5d 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/MyApplication.java +++ b/app/src/main/java/com/tylersuehr/chipexample/MyApplication.java @@ -1,3 +1,17 @@ +/* + * 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 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 + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.tylersuehr.chipexample; import ohos.aafwk.ability.AbilityPackage; diff --git a/app/src/main/java/com/tylersuehr/chipexample/slice/MainAbilitySlice.java b/app/src/main/java/com/tylersuehr/chipexample/slice/MainAbilitySlice.java index b833df1..21aea1c 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/slice/MainAbilitySlice.java +++ b/app/src/main/java/com/tylersuehr/chipexample/slice/MainAbilitySlice.java @@ -1,24 +1,21 @@ -/** +/* * 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 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ - package com.tylersuehr.chipexample.slice; import com.tylersuehr.chipexample.ResourceTable; import com.tylersuehr.chipexample.utils.KeyboardVisibilityEvent; -import com.tylersuehr.chipexample.utils.KeyboardVisibilityEventListener; -import com.tylersuehr.chipexample.utils.Unregistrar; import com.tylersuehr.chips.ChipDetailsView; import com.tylersuehr.chips.FlowLayout; import ohos.aafwk.ability.AbilitySlice; @@ -33,8 +30,6 @@ import ohos.agp.window.service.WindowManager; import ohos.app.Context; import ohos.multimodalinput.event.KeyEvent; -import java.security.SecureRandom; - /** * MainAbilitySlice * diff --git a/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEvent.java b/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEvent.java index 2dc7b29..605238b 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEvent.java +++ b/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEvent.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.tylersuehr.chipexample.utils; import ohos.agp.components.Component; diff --git a/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEventListener.java b/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEventListener.java index 4b3c9fa..49aa8fe 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEventListener.java +++ b/app/src/main/java/com/tylersuehr/chipexample/utils/KeyboardVisibilityEventListener.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.tylersuehr.chipexample.utils; /** diff --git a/app/src/main/java/com/tylersuehr/chipexample/utils/SimpleUnregistrar.java b/app/src/main/java/com/tylersuehr/chipexample/utils/SimpleUnregistrar.java index 6a81e6b..927c6c6 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/utils/SimpleUnregistrar.java +++ b/app/src/main/java/com/tylersuehr/chipexample/utils/SimpleUnregistrar.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.tylersuehr.chipexample.utils; import ohos.aafwk.ability.AbilitySlice; diff --git a/app/src/main/java/com/tylersuehr/chipexample/utils/Unregistrar.java b/app/src/main/java/com/tylersuehr/chipexample/utils/Unregistrar.java index 417beb8..0a1c546 100644 --- a/app/src/main/java/com/tylersuehr/chipexample/utils/Unregistrar.java +++ b/app/src/main/java/com/tylersuehr/chipexample/utils/Unregistrar.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.tylersuehr.chipexample.utils; import ohos.agp.components.Component; -- Gitee