mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-31 23:03:54 +01:00
Replaced refresh() func with emptyCache() and reloadMap()
This commit is contained in:
parent
f3e1bdbb54
commit
c43ecda702
1 changed files with 12 additions and 11 deletions
|
|
@ -320,7 +320,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
public boolean onMenuItemClick(MenuItem item) {
|
public boolean onMenuItemClick(MenuItem item) {
|
||||||
try {
|
try {
|
||||||
// REFRESH BUTTON FUNCTIONALITY HERE
|
// REFRESH BUTTON FUNCTIONALITY HERE
|
||||||
refresh(); // handle functionality of refreshing
|
emptyCache();
|
||||||
|
reloadMap();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
@ -1129,18 +1130,18 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Empties the Nearby local cache and reloads the Nearby map
|
* Reloads the Nearby map
|
||||||
*/
|
*/
|
||||||
private void refresh(){
|
private void reloadMap(){
|
||||||
// can either use this sort of progressDialog to display while page is refreshing
|
|
||||||
// or, we can put a big fat refresh icon on the page.
|
}
|
||||||
// If we stick with the progressDialog, we should make a new one called refreshDialog,
|
|
||||||
// since itll interfere with the one used to save as GPX/KML
|
|
||||||
|
/**
|
||||||
|
* Empties the Nearby local cache
|
||||||
|
*/
|
||||||
|
private void emptyCache(){
|
||||||
|
|
||||||
// When the map initially loads, there is already a big fat refresh circle that is displayed so maybe itll be good to use that instead of dialog
|
|
||||||
// progressDialog.setTitle("REFRESHING NEARBY"); // PLACEHOLDER UNTIL WE
|
|
||||||
// progressDialog.show();
|
|
||||||
// progressDialog.hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void savePlacesAsKML() {
|
private void savePlacesAsKML() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue