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

Commit 8f60f420 authored by cretin45's avatar cretin45
Browse files

SetupWizard: Add config for branded devices and sim card resource

Change-Id: I6a5b0de93dd254826827d7a1501eb3e95901678e
parent 84e431e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,4 +16,6 @@
-->
<resources>
    <integer name="local_picker_items">3</integer>
    <bool name="sim_back">false</bool>
    <bool name="branded_device">false</bool>
</resources>
+6 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
import android.os.UserHandle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.NumberPicker;

@@ -110,6 +110,11 @@ public class WelcomePage extends SetupPage {
        protected void initializePage() {
            mLanguagePicker = (LocalePicker) mRootView.findViewById(R.id.locale_list);
            loadLanguages();
            final boolean brandedDevice = getResources().getBoolean(
                    R.bool.branded_device);
            if (brandedDevice) {
                mRootView.findViewById(R.id.powered_by_logo).setVisibility(View.VISIBLE);
            }
        }

        private void loadLanguages() {