Skip to content

Commit

Permalink
minor change to variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
masmoo committed Feb 5, 2012
1 parent 9175708 commit e8c0da1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -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()));
Expand Down
Expand Up @@ -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]);
}
}
}
Expand Down
Expand Up @@ -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 {
Expand Down

0 comments on commit e8c0da1

Please sign in to comment.