const val OVERRIDE_NETWORK_LTE_CA = 27
const val OVERRIDE_NETWORK_LTE_ADVANCED_PRO = 28
const val OVERRIDE_NETWORK_NR_NSA = 29
- const val OVERRIDE_NETWORK_NR_NSA_MMWAVE = 30
+ const val OVERRIDE_NETWORK_NR_NSA_MMWAVE = 30 // Can be removed once the minimum API >= 31.
+ const val OVERRIDE_NETWORK_NR_ADVANCED = 31
}
// Define the class views.
// Set the title.
dialogBuilder.setTitle(R.string.nr_nsa_mmwave)
}
+
+ OVERRIDE_NETWORK_NR_ADVANCED -> {
+ // Set the icon.
+ dialogBuilder.setIcon(R.drawable.privacy_policy)
+
+ // Set the title.
+ dialogBuilder.setTitle(R.string.nr_advanced)
+ }
}
// Set the view.
OVERRIDE_NETWORK_LTE_ADVANCED_PRO -> webView.loadUrl("https://appassets.androidplatform.net/assets/" + getString(R.string.asset_directory) +
"/explanations/override_network_lte_advanced_pro.html")
OVERRIDE_NETWORK_NR_NSA -> webView.loadUrl("https://appassets.androidplatform.net/assets/" + getString(R.string.asset_directory) + "/explanations/override_network_nr_nsa.html")
+ // The item below can be removed once the minimum API >= 31.
OVERRIDE_NETWORK_NR_NSA_MMWAVE -> webView.loadUrl("https://appassets.androidplatform.net/assets/" + getString(R.string.asset_directory) + "/explanations/override_network_nr_nsa_mmwave.html")
+ OVERRIDE_NETWORK_NR_ADVANCED -> webView.loadUrl("https://appassets.androidplatform.net/assets/" + getString(R.string.asset_directory) + "/explanations/override_network_nr_advanced.html")
}
// Scroll the WebView if the saved instance state is not null.