@ -320,10 +320,10 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -320,10 +320,10 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -537,8 +537,8 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -537,8 +537,8 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -130,7 +130,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -130,7 +130,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -183,7 +183,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -183,7 +183,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -399,11 +399,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -399,11 +399,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -115,7 +109,7 @@ public class HistoryItem implements Comparable<HistoryItem> {
@@ -115,7 +109,7 @@ public class HistoryItem implements Comparable<HistoryItem> {
@ -123,27 +117,29 @@ public class HistoryItem implements Comparable<HistoryItem> {
@@ -123,27 +117,29 @@ public class HistoryItem implements Comparable<HistoryItem> {
@ -66,7 +60,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
@@ -66,7 +60,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
@ -74,23 +68,23 @@ public class DownloadItem implements Comparable<DownloadItem> {
@@ -74,23 +68,23 @@ public class DownloadItem implements Comparable<DownloadItem> {
@ -80,40 +92,108 @@ public class HistoryDatabase extends SQLiteOpenHelper {
@@ -80,40 +92,108 @@ public class HistoryDatabase extends SQLiteOpenHelper {
@ -140,43 +220,6 @@ public class HistoryDatabase extends SQLiteOpenHelper {
@@ -140,43 +220,6 @@ public class HistoryDatabase extends SQLiteOpenHelper {
@ -34,7 +31,7 @@ public class LightningDownloadListener implements DownloadListener {
@@ -34,7 +31,7 @@ public class LightningDownloadListener implements DownloadListener {
privatefinalActivitymActivity;
@InjectPreferenceManagermPreferenceManager;
@InjectDownloadHandlermDownloadHandler;
@InjectDownloadsModeldownloadsModel;
publicLightningDownloadListener(Activitycontext){
@ -64,17 +61,7 @@ public class LightningDownloadListener implements DownloadListener {
@@ -64,17 +61,7 @@ public class LightningDownloadListener implements DownloadListener {
@ -17,11 +15,7 @@ public class BezierDecelerateInterpolator implements Interpolator {
@@ -17,11 +15,7 @@ public class BezierDecelerateInterpolator implements Interpolator {
@ -297,7 +297,7 @@ public class ReadingActivity extends AppCompatActivity {
@@ -297,7 +297,7 @@ public class ReadingActivity extends AppCompatActivity {
@ -38,7 +38,7 @@ public class SettingsActivity extends ThemableSettingsActivity {
@@ -38,7 +38,7 @@ public class SettingsActivity extends ThemableSettingsActivity {
root.addView(toolbarContainer);
// now we can set the Toolbar using AppCompatPreferenceActivity
@ -46,7 +46,7 @@ public class SettingsActivity extends ThemableSettingsActivity {
@@ -46,7 +46,7 @@ public class SettingsActivity extends ThemableSettingsActivity {
@ -59,17 +59,17 @@ public class SettingsActivity extends ThemableSettingsActivity {
@@ -59,17 +59,17 @@ public class SettingsActivity extends ThemableSettingsActivity {
@ -24,18 +24,18 @@ public class AboutSettingsFragment extends PreferenceFragment {
@@ -24,18 +24,18 @@ public class AboutSettingsFragment extends PreferenceFragment {
@ -152,7 +152,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@@ -152,7 +152,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@ -53,12 +62,16 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -53,12 +62,16 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -106,7 +119,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -106,7 +119,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -156,11 +170,15 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -156,11 +170,15 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -170,18 +188,18 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -170,18 +188,18 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -257,8 +275,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -257,8 +275,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
// Limit the number of characters since the port needs to be of type int
// Use input filters to limite the EditText length and determine the max
@ -294,13 +312,24 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -294,13 +312,24 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -308,8 +337,19 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -308,8 +337,19 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -418,7 +458,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -418,7 +458,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
privatevoidhomePicker(){
StringcurrentHomepage;
mHomepage=mPreferenceManager.getHomepage();
if(!mHomepage.startsWith(Constants.ABOUT)){
if(!URLUtil.isAboutUrl(mHomepage)){
currentHomepage=mHomepage;
}else{
currentHomepage="https://www.google.com";
@ -455,8 +495,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -455,8 +495,8 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -519,7 +559,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -519,7 +559,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -535,7 +575,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -535,7 +575,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -544,40 +584,11 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -544,40 +584,11 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -663,7 +674,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -663,7 +674,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -45,6 +48,8 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@@ -45,6 +48,8 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
privateActivitymActivity;
@InjectHistoryModelmHistoryModel;
@Override
publicvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
@ -187,7 +192,8 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@@ -187,7 +192,8 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@ -73,15 +73,9 @@ public class LightningChromeClient extends WebChromeClient {
@@ -73,15 +73,9 @@ public class LightningChromeClient extends WebChromeClient {
return;
}
Uriuri=Uri.parse(url);
if(uri.getHost()==null){
return;
}
mFaviconModel.cacheFaviconForUrl(icon,url)
.subscribeOn(Schedulers.io())
.subscribe();
.subscribeOn(Schedulers.io())
.subscribe();
}
@ -114,21 +108,21 @@ public class LightningChromeClient extends WebChromeClient {
@@ -114,21 +108,21 @@ public class LightningChromeClient extends WebChromeClient {
@ -304,7 +306,7 @@ public class LightningWebClient extends WebViewClient {
@@ -304,7 +306,7 @@ public class LightningWebClient extends WebViewClient {
// If we are in incognito, immediately load, we don't want the url to leave the app
returncontinueLoadingUrl(view,url,headers);
}
if(url.startsWith(Constants.ABOUT)){
if(URLUtil.isAboutUrl(url)){
// If this is an about page, immediately load, we don't need to leave the app
returncontinueLoadingUrl(view,url,headers);
}
@ -359,15 +361,14 @@ public class LightningWebClient extends WebViewClient {
@@ -359,15 +361,14 @@ public class LightningWebClient extends WebViewClient {
@ -377,8 +378,10 @@ public class LightningWebClient extends WebViewClient {
@@ -377,8 +378,10 @@ public class LightningWebClient extends WebViewClient {
}catch(Exceptione){
System.out.println("LightningWebClient: cannot open downloaded file");