@ -22,7 +22,7 @@ public class HistoryPage {
@@ -22,7 +22,7 @@ public class HistoryPage {
public static final String FILENAME = "history.html" ;
private static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>"
+ BrowserApp . getApp Context ( ) . getString ( R . string . action_history )
+ BrowserApp . getContext ( ) . getString ( R . string . action_history )
+ "</title></head><style>body { background: #e1e1e1;}.box { vertical-align:middle;position:relative; display: block; margin: 10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px; background-color:#fff;box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 );font-family: Arial;color: #444;font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}.box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0;}.black {color: black;font-size: 15px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}.font {color: gray;font-size: 10px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}</style><body><div id=\"content\">" ;
private static final String PART1 = "<div class=\"box\"><a href=\"" ;
@ -37,7 +37,7 @@ public class HistoryPage {
@@ -37,7 +37,7 @@ public class HistoryPage {
public static String getHistoryPage ( Context context ) {
StringBuilder historyBuilder = new StringBuilder ( HistoryPage . HEADING ) ;
List < HistoryItem > historyList = getWebHistory ( context ) ;
List < HistoryItem > historyList = getWebHistory ( ) ;
Iterator < HistoryItem > it = historyList . iterator ( ) ;
HistoryItem helper ;
while ( it . hasNext ( ) ) {
@ -65,8 +65,8 @@ public class HistoryPage {
@@ -65,8 +65,8 @@ public class HistoryPage {
return Constants . FILE + historyWebPage ;
}
private static List < HistoryItem > getWebHistory ( Context context ) {
HistoryDatabase databaseHandler = BrowserApp . getAppComponent ( ) . get HistoryDatabase ( ) ;
private static List < HistoryItem > getWebHistory ( ) {
HistoryDatabase databaseHandler = BrowserApp . getHistoryDatabase ( ) ;
return databaseHandler . getLastHundredItems ( ) ;
}
}