ソースを参照

ProfileDownloadFragment: Do not crash for USB channels

Peter Cai 1 年間 前
コミット
0a971b68b2

+ 1 - 1
app-common/src/main/java/im/angry/openeuicc/ui/ProfileDownloadFragment.kt

@@ -151,7 +151,7 @@ class ProfileDownloadFragment : BaseMaterialDialogFragment(),
         super.onStart()
         super.onStart()
         profileDownloadIMEI.editText!!.text = Editable.Factory.getInstance().newEditable(
         profileDownloadIMEI.editText!!.text = Editable.Factory.getInstance().newEditable(
             try {
             try {
-                telephonyManager.getImei(channel.logicalSlotId)
+                telephonyManager.getImei(channel.logicalSlotId) ?: ""
             } catch (e: Exception) {
             } catch (e: Exception) {
                 ""
                 ""
             }
             }