Browse Source

fix: Name clash with OpenEuiccContextMarker::context

Peter Cai 2 years ago
parent
commit
5517b7dcd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-common/src/main/java/im/angry/openeuicc/util/Utils.kt

+ 2 - 2
app-common/src/main/java/im/angry/openeuicc/util/Utils.kt

@@ -27,7 +27,7 @@ val Context.selfAppVersion: String
         }
         }
 
 
 interface OpenEuiccContextMarker {
 interface OpenEuiccContextMarker {
-    val context: Context
+    val openEuiccMarkerContext: Context
         get() = when (this) {
         get() = when (this) {
             is Context -> this
             is Context -> this
             is Fragment -> requireContext()
             is Fragment -> requireContext()
@@ -35,7 +35,7 @@ interface OpenEuiccContextMarker {
         }
         }
 
 
     val openEuiccApplication: OpenEuiccApplication
     val openEuiccApplication: OpenEuiccApplication
-        get() = context.applicationContext as OpenEuiccApplication
+        get() = openEuiccMarkerContext.applicationContext as OpenEuiccApplication
 
 
     val euiccChannelManager: EuiccChannelManager
     val euiccChannelManager: EuiccChannelManager
         get() = openEuiccApplication.euiccChannelManager
         get() = openEuiccApplication.euiccChannelManager