From this line:
https://github.com/freedomofkeima/LNReader-Android/blob/e9bbe1330777c86da73e6d0ed3c4d018f4adc8d4/LNReader/src/com/erakk/lnreader/activity/DisplayAlternativeNovelListActivity.java#L79

It is possible for the intent to have empty/null value, also you need to
check if the value is persisted when the activity is restarted.
I think we can add the check in the onCreate() method.

to persist the data when activity is restarting, you can check
onSaveInstanceState() and onRestoreInstanceState(). I forgot if the
starting intent is automatically saved or not :D


On Thu, Jun 6, 2013 at 11:06 PM, Iskandar Setiadi
<notifications@github.com>wrote:

> In
> LNReader/src/com/erakk/lnreader/activity/DisplayAlternativeNovelListActivity.java:
>
> > @@ -157,13 +157,13 @@ public void refreshList() {
> >  	}
> >  	
> >  	public void downloadAllNovelInfo() {
> > -		if (language.equals(Constants.LANG_BAHASA_INDONESIA)) touchedForDownload = "Bahasa Indonesia Light Novels information";
> > +		touchedForDownload = language  + " Light Novels information";
>
> well, this question is not related with the code, but I'm just wondering,
> what situation makes language = null (in this activity) ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/calvinaquino/LNReader-Android/pull/56/files#r4569382>
> .
>



-- 
My Blog at http://nandaka.wordpress.com