SetupWizard: Add config for branded devices and sim card resource

Change-Id: I6a5b0de93dd254826827d7a1501eb3e95901678e
This commit is contained in:
cretin45 2015-01-27 14:34:17 -08:00
parent 84e431e131
commit 8f60f420e7
2 changed files with 8 additions and 1 deletions

View File

@ -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>

View File

@ -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() {