Skip to content

Commit

Permalink
refactor(keyboard,lifecycle): remove useless CoroutineScopeJava
Browse files Browse the repository at this point in the history
Java cannot use Kotlin's coroutines directly.
  • Loading branch information
WhiredPlanck committed Jan 10, 2023
1 parent 60ab4d5 commit 723b9dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Expand Up @@ -49,27 +49,18 @@
import com.osfans.trime.data.theme.FontManager;
import com.osfans.trime.databinding.KeyboardKeyPreviewBinding;
import com.osfans.trime.ime.enums.KeyEventType;
import com.osfans.trime.ime.lifecycle.CoroutineScopeJava;
import com.osfans.trime.util.DimensionsKt;
import com.osfans.trime.util.LeakGuardHandlerWrapper;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlin.coroutines.CoroutineContext;
import kotlinx.coroutines.CoroutineScope;
import splitties.systemservices.SystemServicesKt;
import timber.log.Timber;

/** 顯示{@link Keyboard 鍵盤}及{@link Key 按鍵} */
public class KeyboardView extends View implements View.OnClickListener, CoroutineScope {

@NonNull
@Override
public CoroutineContext getCoroutineContext() {
return CoroutineScopeJava.getMainScopeJava().getCoroutineContext();
}
public class KeyboardView extends View implements View.OnClickListener {

/** 處理按鍵、觸摸等輸入事件 */
public interface OnKeyboardActionListener {
Expand Down

This file was deleted.

0 comments on commit 723b9dd

Please sign in to comment.