SetupWizard: Add config for branded devices and sim card resource
Change-Id: I6a5b0de93dd254826827d7a1501eb3e95901678e
This commit is contained in:
parent
84e431e131
commit
8f60f420e7
@ -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>
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user