Remove unused resources, make methods static
This commit is contained in:
parent
05efb4eb72
commit
4f839e0866
@ -96,7 +96,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
|
|||||||
delete.start();
|
delete.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deleteOldCacheFiles() {
|
private static void deleteOldCacheFiles() {
|
||||||
File dir = new File(BrowserApp.getAppContext().getCacheDir().toString());
|
File dir = new File(BrowserApp.getAppContext().getCacheDir().toString());
|
||||||
String[] fileList = dir.list(new NameFilter());
|
String[] fileList = dir.list(new NameFilter());
|
||||||
long earliestTimeAllowed = System.currentTimeMillis() - INTERVAL_DAY;
|
long earliestTimeAllowed = System.currentTimeMillis() - INTERVAL_DAY;
|
||||||
|
@ -968,7 +968,7 @@ public class ArticleTextExtractor {
|
|||||||
return weight;
|
return weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Element determineImageSource(Element el, List<ImageResult> images) {
|
private static Element determineImageSource(Element el, List<ImageResult> images) {
|
||||||
int maxWeight = 0;
|
int maxWeight = 0;
|
||||||
Element maxNode = null;
|
Element maxNode = null;
|
||||||
Elements els = el.select("img");
|
Elements els = el.select("img");
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||||
<dimen name="navigation_width">260dp</dimen>
|
<dimen name="navigation_width">260dp</dimen>
|
||||||
<dimen name="search_bar_height">48dp</dimen>
|
<dimen name="search_bar_height">48dp</dimen>
|
||||||
<dimen name="abc_action_button_min_width_overflow_material">48dp</dimen>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user