added openstreetmap copyright notice to maps

fixes #3588
This commit is contained in:
Anjan Momi 2020-01-04 19:44:05 +00:00 committed by Daniel Gultsch
parent 42d69fd5e3
commit 0315b3b5c2
4 changed files with 18 additions and 0 deletions

View File

@ -11,7 +11,9 @@ import android.os.Bundle;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar; import android.support.design.widget.Snackbar;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.text.method.LinkMovementMethod;
import android.view.View; import android.view.View;
import android.widget.TextView;
import org.osmdroid.api.IGeoPoint; import org.osmdroid.api.IGeoPoint;
import org.osmdroid.util.GeoPoint; import org.osmdroid.util.GeoPoint;
@ -105,6 +107,8 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
} }
toggleFixedLocation(); toggleFixedLocation();
}); });
binding.openstreetmapCredit.setMovementMethod(LinkMovementMethod.getInstance());
} }
@Override @Override

View File

@ -26,6 +26,18 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
<TextView
android:id="@+id/openstreetmap_credit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|start"
android:layout_margin="4dp"
android:text="@string/openstreetmap_credit"
android:background="@color/white50"
android:paddingLeft="4dp"
android:paddingRight="4dp"
app:elevation="4dp" />
<android.support.design.widget.FloatingActionButton <android.support.design.widget.FloatingActionButton
android:id="@+id/fab" android:id="@+id/fab"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -9,6 +9,7 @@
<color name="white87">#deffffff</color> <color name="white87">#deffffff</color>
<color name="white70">#b2ffffff</color> <color name="white70">#b2ffffff</color>
<color name="white12">#1fffffff</color> <color name="white12">#1fffffff</color>
<color name="white50">#80FFFFFF</color>
<color name="grey50">#fffafafa</color> <color name="grey50">#fffafafa</color>
<color name="grey200">#ffeeeeee</color> <color name="grey200">#ffeeeeee</color>
<color name="grey300">#ffe0e0e0</color> <color name="grey300">#ffe0e0e0</color>

View File

@ -882,4 +882,5 @@
<string name="pref_channel_discovery">Channel discovery method</string> <string name="pref_channel_discovery">Channel discovery method</string>
<string name="backup">Backup</string> <string name="backup">Backup</string>
<string name="category_about">About</string> <string name="category_about">About</string>
<string name="openstreetmap_credit">© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors</string>
</resources> </resources>