paoservis / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Remove ".xml" from custom layout list #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to get a little nicer presentation of custom buttom layouts, could 
someone please do a change like the one I try to show below. You must excuse me 
if the code is wrong, I am *very* new to Java and even the smallest piece of 
code is sometimes hard to understand. Basically what I am suggesting is taking 
away the ".xml" part of the file name from the presentation of custom layouts 
in the Settings part of the application.

File: osmtracker/activity/Preferences.java
Line: 160

Change the text from:
  entries[i+1] = layoutFiles[i];

To this instead:
  entries[i+1] = layoutFiles[i].substring(0,layoutFiles[i].length()-4);

Original issue reported on code.google.com by peter.ki...@gmail.com on 24 Jun 2011 at 9:53

GoogleCodeExporter commented 9 years ago
Thanks, I've implemented that it's indeed a bit nicer.

Original comment by nicolas@guillaumin.me on 25 Jun 2011 at 2:57