project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/StartGameActivity.java
branchhedgeroid
changeset 6350 41b0a9955c47
parent 6053 39d763049c0f
child 6486 2a3ee24764bb
equal deleted inserted replaced
6348:162fec525764 6350:41b0a9955c47
   140 
   140 
   141 	private OnItemSelectedListener themesClicker = new OnItemSelectedListener(){
   141 	private OnItemSelectedListener themesClicker = new OnItemSelectedListener(){
   142 
   142 
   143 		public void onItemSelected(AdapterView<?> arg0, View view, int position, long rowId) {
   143 		public void onItemSelected(AdapterView<?> arg0, View view, int position, long rowId) {
   144 			String themeName = (String) arg0.getAdapter().getItem(position);
   144 			String themeName = (String) arg0.getAdapter().getItem(position);
   145 			Drawable themeIconDrawable = Drawable.createFromPath(Utils.getDownloadPath(StartGameActivity.this) + "Themes/" + themeName + "/icon@2X.png");
   145 			Drawable themeIconDrawable = Drawable.createFromPath(Utils.getDataPath(StartGameActivity.this) + "Themes/" + themeName + "/icon@2X.png");
   146 			themeIcon.setImageDrawable(themeIconDrawable);
   146 			themeIcon.setImageDrawable(themeIconDrawable);
   147 			config.theme = themeName;
   147 			config.theme = themeName;
   148 		}
   148 		}
   149 
   149 
   150 		public void onNothingSelected(AdapterView<?> arg0) {
   150 		public void onNothingSelected(AdapterView<?> arg0) {