Skip to content
Browse files

minor change to variable name

  • Loading branch information...
1 parent 9175708 commit e8c0da1da4317efed28603161c7d7f33282e2bed @masmoo masmoo committed
View
2 SearchDemo/src/com/oreilly/demo/android/pa/searchdemo/SearchActivity.java
@@ -62,7 +62,7 @@ private void loadView(Sonnet son) {
txt.setVisibility(View.VISIBLE);
} else if(son != null){
TextView txt = (TextView) findViewById(R.id.title);
- txt.setText("Sonnet ".intern() + son.number);
+ txt.setText("Sonnet ".intern() + son.title);
txt.setVisibility(View.VISIBLE);
for(int i=0;i<son.lines.length;i++) {
TextView tline = (TextView) findViewById(getResources().getIdentifier(("line".intern()) + (i+1), "id".intern(), getPackageName()));
View
2 SearchDemo/src/com/oreilly/demo/android/pa/searchdemo/SearchDBLogic.java
@@ -113,7 +113,7 @@ private void readInSonnets(Context context, int resourceId) throws Exception {
Sonnet sonnet = new Sonnet(num, ls.toArray(new String[size]));
if(sql != null) {
for(int i=0;i<size;i++) {
- sql.addSonnet(id++, sonnet.num, sonnet.number, i, sonnet.lines[i]);
+ sql.addSonnet(id++, sonnet.num, sonnet.title, i, sonnet.lines[i]);
}
}
}
View
6 SearchDemo/src/com/oreilly/demo/android/pa/searchdemo/Sonnet.java
@@ -2,13 +2,13 @@
public class Sonnet {
public int num;
- public String number;
+ public String title;
public String[] lines;
public Sonnet(String n, String[] lins) {
- number = n;
+ title = n;
lines = lins;
- num = RomanNum.convert(number);
+ num = RomanNum.convert(title);
}
private static class RomanNum {

0 comments on commit e8c0da1

Please sign in to comment.
Something went wrong with that request. Please try again.