Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e9bd7ca authored by frankpreel's avatar frankpreel
Browse files

Try to hide the Find my Devie item if SIM is not present

parent ce70fb71
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -39,10 +39,9 @@ public class FindMyDeviceActivity extends SubBaseActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (!SetupWizardUtils.hasTelephony(this)) {
            // See LINEAGE_SIM_MISSING
            finishAction(RESULT_SKIP, new Intent().putExtra("onBackPressed", true));
        if (!SetupWizardUtils.simMissing(this) || !SetupWizardUtils.hasTelephony(this)) {
            Log.v(TAG, "Has no telephony support");
            onNavigateNext();
            return;
        }