package app.grapheneos.setupwizard.view.activity import android.content.Intent import android.util.Log import app.grapheneos.setupwizard.action.WifiActions class WifiActivity : ProxyActivity() { companion object { private const val TAG = "WifiActivity" } override fun launchActual() { WifiActions.launchSetup(this) } override fun handleResult(resultCode: Int, data: Intent?) { Log.d(TAG, "WiFi result: $resultCode") if (resultCode != RESULT_OK) { Log.w(TAG, "WiFi not configured – retrying") // reopen wifi setup launchActual() return } setMovingForward() WifiActions.handleResult(this, resultCode) } override fun onBackPressed() { // WiFi cannot be skipped } }