From 9a8e9fa1a81e9bdd76d873a301aa0530a66be8d8 Mon Sep 17 00:00:00 2001 From: js Date: Thu, 11 May 2023 20:06:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/net/imshit/aircraftwar/gui/GameActivity.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/net/imshit/aircraftwar/gui/GameActivity.kt b/app/src/main/java/net/imshit/aircraftwar/gui/GameActivity.kt index d01729b..2b399a4 100644 --- a/app/src/main/java/net/imshit/aircraftwar/gui/GameActivity.kt +++ b/app/src/main/java/net/imshit/aircraftwar/gui/GameActivity.kt @@ -21,18 +21,9 @@ class GameActivity : AppCompatActivity() { } } - var width: Int = 0 - private set - var height: Int = 0 - private set - override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) // 获取配置 - with(windowManager.currentWindowMetrics.bounds) { - width = right - left - height = bottom - top - } val soundMode: Boolean val gameMode: Difficulty intent.apply {