Disable the ability to clear the images cache in wikivoyage for now.

This commit is contained in:
Alex Sytnyk 2018-04-13 18:11:03 +03:00
parent 2914d883bf
commit 9c5ba471d6

View file

@ -2,7 +2,7 @@ package net.osmand.plus.wikivoyage.explore;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Toast;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandSettings;
@ -44,13 +44,13 @@ public class WikivoyageOptionsBottomSheetDialogFragment extends MenuBottomSheetD
BaseBottomSheetItem clearCacheItem = new BottomSheetItemWithDescription.Builder()
.setDescription(getString(R.string.shared_string_clear))
.setTitle(getString(R.string.images_cache) + ":")
.setTitle(getString(R.string.images_cache) + ": ???") // TODO : show images cache size
.setLayoutId(R.layout.bottom_sheet_item_with_right_descr)
.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new WebView(getContext()).clearCache(true);
dismiss();
// TODO : implement clearing of cache
Toast.makeText(getContext(), "Currently in development", Toast.LENGTH_SHORT).show();
}
})
.create();