From 244ea4b9809fcafb6d38e11e33263637ef82a717 Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Tue, 6 Feb 2024 08:23:55 +0100 Subject: [PATCH] Add controller `toString` --- .../java/universe/constellation/orion/viewer/Controller.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orion-viewer/src/main/java/universe/constellation/orion/viewer/Controller.kt b/orion-viewer/src/main/java/universe/constellation/orion/viewer/Controller.kt index 62137f76c..24df08f32 100644 --- a/orion-viewer/src/main/java/universe/constellation/orion/viewer/Controller.kt +++ b/orion-viewer/src/main/java/universe/constellation/orion/viewer/Controller.kt @@ -370,4 +370,8 @@ class Controller( val height = dm.heightPixels return DeviceInfo(am.memoryClass, width, height, Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) } + + override fun toString(): String { + return "Controller for $document (controller identity hashCode=${System.identityHashCode(this)}})" + } }