|
|
@ -1,12 +1,10 @@ |
|
|
|
package me.ag2s.epublib.domain; |
|
|
|
package me.ag2s.epublib.domain; |
|
|
|
|
|
|
|
|
|
|
|
import android.util.Log; |
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
|
|
|
|
import me.ag2s.epublib.Constants; |
|
|
|
import me.ag2s.epublib.Constants; |
|
|
|
import me.ag2s.epublib.util.StringUtil; |
|
|
|
import me.ag2s.epublib.util.StringUtil; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TitledResourceReference extends ResourceReference |
|
|
|
public class TitledResourceReference extends ResourceReference |
|
|
|
implements Serializable { |
|
|
|
implements Serializable { |
|
|
|
|
|
|
|
|
|
|
@ -74,8 +72,6 @@ public class TitledResourceReference extends ResourceReference |
|
|
|
//resource为null时不设置标题
|
|
|
|
//resource为null时不设置标题
|
|
|
|
if(this.resource!=null&&this.title!=null){ |
|
|
|
if(this.resource!=null&&this.title!=null){ |
|
|
|
resource.setTitle(title); |
|
|
|
resource.setTitle(title); |
|
|
|
}else { |
|
|
|
|
|
|
|
Log.e(TitledResourceReference.class.getSimpleName(),"警告:resource 为null,忽略设置标题。"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return resource; |
|
|
|
return resource; |
|
|
|