From 955bbb7289fe8411634e67cf182e48792ff0083c Mon Sep 17 00:00:00 2001 From: Alexander Marchuk Date: Fri, 22 Jan 2016 20:48:41 +0300 Subject: [PATCH] [old-map-downloader][android] add: "Download all maps" toolbar button. --- .../jni/com/mapswithme/country/CountryTree.cpp | 14 ++++++++++++++ android/res/layout/fragment_downloader.xml | 9 +++++++++ .../com/mapswithme/country/CountryTree.java | 4 ++++ .../mapswithme/country/DownloadFragment.java | 18 +++++++++++++++++- 4 files changed, 44 insertions(+), 1 deletion(-) diff --git a/android/jni/com/mapswithme/country/CountryTree.cpp b/android/jni/com/mapswithme/country/CountryTree.cpp index ce534974be..8b94b5f461 100644 --- a/android/jni/com/mapswithme/country/CountryTree.cpp +++ b/android/jni/com/mapswithme/country/CountryTree.cpp @@ -135,4 +135,18 @@ extern "C" { g_framework->ResetCountryTreeListener(); } + + // FIXME (trashkalmar): Add proper logic + + JNIEXPORT jboolean JNICALL + Java_com_mapswithme_country_CountryTree_isDownloadableGroup(JNIEnv * env, jclass clazz) + { + return true; + } + + JNIEXPORT void JNICALL + Java_com_mapswithme_country_CountryTree_downloadGroup(JNIEnv * env, jclass clazz) + { + + } } diff --git a/android/res/layout/fragment_downloader.xml b/android/res/layout/fragment_downloader.xml index 238bef3762..c6448dc92e 100644 --- a/android/res/layout/fragment_downloader.xml +++ b/android/res/layout/fragment_downloader.xml @@ -21,6 +21,15 @@ android:padding="@dimen/margin_half" android:text="@string/downloader_update_all" android:textAppearance="@style/MwmTextAppearance.Toolbar.Title.Button"/> + +