Hide copyright notes from dashboard, should be removed later
This commit is contained in:
parent
f6d69ce808
commit
1f5d846c1f
2 changed files with 7 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
|||
android:textSize="20sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- All Copyright notes and links moved to 'About' screen
|
||||
<!-- TODO: All Copyright notes and links should be removed here, have moved to the 'About' screen -->
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -52,7 +52,7 @@
|
|||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<!--
|
||||
<TextView
|
||||
android:id="@+id/OpenStreetMaps"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -62,9 +62,9 @@
|
|||
android:gravity="end"
|
||||
android:text="@string/openstreetmap_copyright"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
-->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
|
@ -119,6 +119,10 @@ public class DashboardActivity extends BaseDownloadActivity {
|
|||
final String textVersion = "\u00A9 OsmAnd " + inst.get(Calendar.YEAR);
|
||||
textVersionView.setText(textVersion);
|
||||
final SharedPreferences prefs = getApplicationContext().getSharedPreferences("net.osmand.settings", MODE_WORLD_READABLE);
|
||||
|
||||
//TODO: textversionview should be totally removed here as it has been moved to the About screen
|
||||
textVersionView.setVisibility(View.GONE);
|
||||
|
||||
textVersionView.setOnClickListener(new OnClickListener(){
|
||||
|
||||
int i = 0;
|
||||
|
|
Loading…
Reference in a new issue