diff --git a/app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java b/app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
index ecf3cedb1..70bf281dc 100644
--- a/app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
+++ b/app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
@@ -14,6 +14,7 @@ import android.view.ViewTreeObserver;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
+import android.widget.Toast;
import java.io.IOException;
import java.text.SimpleDateFormat;
@@ -273,7 +274,12 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
}
private void setOnClickListeners(final Media media) {
- license.setOnClickListener(v -> openWebBrowser(licenseLink(media)));
+ if (licenseLink(media) != null) {
+ license.setOnClickListener(v -> openWebBrowser(licenseLink(media)));
+ } else {
+ Toast toast = Toast.makeText(getContext(), getString(R.string.null_url), Toast.LENGTH_SHORT);
+ toast.show();
+ }
if (media.getCoordinates() != null) {
coordinates.setOnClickListener(v -> openMap(media.getCoordinates()));
}
diff --git a/app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java b/app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java
index 4b4ca3007..cdb9e97d3 100644
--- a/app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java
+++ b/app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java
@@ -5,6 +5,7 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
+import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
@@ -46,8 +47,9 @@ public class NotificationActivity extends NavigationBaseActivity {
}
private void initListView() {
- recyclerView = findViewById(R.id.listView);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
+ DividerItemDecoration itemDecor = new DividerItemDecoration(recyclerView.getContext(), DividerItemDecoration.VERTICAL);
+ recyclerView.addItemDecoration(itemDecor);
addNotifications();
}
diff --git a/app/src/main/java/fr/free/nrw/commons/theme/NavigationBaseActivity.java b/app/src/main/java/fr/free/nrw/commons/theme/NavigationBaseActivity.java
index 99c9f253b..fa0e43957 100644
--- a/app/src/main/java/fr/free/nrw/commons/theme/NavigationBaseActivity.java
+++ b/app/src/main/java/fr/free/nrw/commons/theme/NavigationBaseActivity.java
@@ -5,6 +5,7 @@ import android.accounts.AccountManager;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
+import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.widget.DrawerLayout;
@@ -119,8 +120,9 @@ public abstract class NavigationBaseActivity extends BaseActivity
return true;
case R.id.action_feedback:
drawerLayout.closeDrawer(navigationView);
- Intent feedbackIntent = new Intent(Intent.ACTION_SEND);
+ Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);
feedbackIntent.setType("message/rfc822");
+ feedbackIntent.setData(Uri.parse("mailto:"));
feedbackIntent.putExtra(Intent.EXTRA_EMAIL,
new String[]{CommonsApplication.FEEDBACK_EMAIL});
feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,
diff --git a/app/src/main/res/layout-land/activity_login.xml b/app/src/main/res/layout-land/activity_login.xml
index 9ecaf9855..2914f9530 100644
--- a/app/src/main/res/layout-land/activity_login.xml
+++ b/app/src/main/res/layout-land/activity_login.xml
@@ -13,12 +13,12 @@
@@ -40,11 +40,26 @@
android:textColor="@android:color/white"
android:textSize="@dimen/heading_text_size" />
+
+
@@ -56,6 +71,7 @@
android:layout_marginLeft="@dimen/standard_gap"
android:layout_marginRight="@dimen/standard_gap"
android:layout_marginStart="@dimen/standard_gap"
+ android:gravity="center"
android:paddingBottom="@dimen/small_gap"
android:paddingTop="@dimen/small_gap"
android:textColor="@color/secondaryDarkColor"
@@ -98,7 +114,7 @@
android:layout_marginLeft="@dimen/standard_gap"
android:layout_marginRight="@dimen/standard_gap"
android:layout_marginStart="@dimen/standard_gap"
- app:passwordToggleEnabled="false">
+ app:passwordToggleEnabled="true">
+ android:layout_marginBottom="@dimen/standard_gap"
+ android:text="@string/about_privacy_policy" />
@@ -188,19 +204,19 @@
+ android:elevation="8dp"
+ app:srcCompat="@drawable/blue_rinse_circle"
+ tools:ignore="UnusedAttribute" />
+ app:srcCompat="@drawable/commons_logo_large"
+ tools:ignore="UnusedAttribute" />
diff --git a/app/src/main/res/layout-land/welcome_do_upload.xml b/app/src/main/res/layout-land/welcome_do_upload.xml
index 1f02c3183..d96b00675 100644
--- a/app/src/main/res/layout-land/welcome_do_upload.xml
+++ b/app/src/main/res/layout-land/welcome_do_upload.xml
@@ -73,16 +73,91 @@
android:gravity="center_horizontal"
android:textColor="@android:color/white"/>
-
+
+
+
+
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout-land/welcome_dont_upload.xml b/app/src/main/res/layout-land/welcome_dont_upload.xml
index 1d4d0db80..d950ffc1d 100644
--- a/app/src/main/res/layout-land/welcome_dont_upload.xml
+++ b/app/src/main/res/layout-land/welcome_dont_upload.xml
@@ -55,16 +55,90 @@
android:gravity="center_horizontal"
android:textColor="@android:color/white"/>
-
+
+
+
+
+
+
+
+
+ android:orientation="horizontal">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout-land/welcome_image_details.xml b/app/src/main/res/layout-land/welcome_image_details.xml
index d112292a1..79f48829b 100644
--- a/app/src/main/res/layout-land/welcome_image_details.xml
+++ b/app/src/main/res/layout-land/welcome_image_details.xml
@@ -38,16 +38,89 @@
android:gravity="center_horizontal"
android:textColor="@android:color/white"/>
-
+ android:orientation="horizontal">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout-xlarge/activity_login.xml b/app/src/main/res/layout-xlarge/activity_login.xml
index 32cd47451..b078e6fe3 100644
--- a/app/src/main/res/layout-xlarge/activity_login.xml
+++ b/app/src/main/res/layout-xlarge/activity_login.xml
@@ -13,12 +13,12 @@
@@ -40,6 +40,21 @@
android:textColor="@android:color/white"
android:textSize="@dimen/heading_text_size" />
+
+
+ android:layout_marginBottom="@dimen/standard_gap"
+ android:text="@string/about_privacy_policy" />
@@ -188,8 +204,8 @@
@@ -198,9 +214,9 @@
android:layout_height="42dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
- tools:ignore="UnusedAttribute"
android:elevation="8dp"
- app:srcCompat="@drawable/commons_logo_large" />
+ app:srcCompat="@drawable/commons_logo_large"
+ tools:ignore="UnusedAttribute" />
diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml
index 82aa38919..f03ff9c76 100644
--- a/app/src/main/res/layout/activity_about.xml
+++ b/app/src/main/res/layout/activity_about.xml
@@ -5,137 +5,135 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
+ android:layout_height="wrap_content">
-
+ android:layout_height="wrap_content">
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_marginLeft="@dimen/activity_margin_horizontal"
+ android:layout_marginRight="@dimen/activity_margin_horizontal"
+ android:layout_marginStart="@dimen/activity_margin_horizontal"
+ android:layout_marginTop="@dimen/activity_margin_vertical"
+ android:gravity="center"
+ android:orientation="vertical">
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:contentDescription="@string/commons_logo"
+ android:src="@drawable/ic_launcher" />
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+ app:menu="@menu/drawer" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index 1681d89f7..b816a37fb 100644
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -44,20 +44,20 @@
android:textColor="@android:color/white"
android:textSize="@dimen/heading_text_size" />
-
+
+
+ app:passwordToggleEnabled="true">
-
-
diff --git a/app/src/main/res/layout/fragment_media_detail.xml b/app/src/main/res/layout/fragment_media_detail.xml
index cffca14c6..5cc303763 100644
--- a/app/src/main/res/layout/fragment_media_detail.xml
+++ b/app/src/main/res/layout/fragment_media_detail.xml
@@ -149,6 +149,10 @@
tools:text="License link" />
+
+
-
+ android:gravity="center"
+ android:orientation="horizontal">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_dont_upload.xml b/app/src/main/res/layout/welcome_dont_upload.xml
index 8d352547e..d819bc035 100644
--- a/app/src/main/res/layout/welcome_dont_upload.xml
+++ b/app/src/main/res/layout/welcome_dont_upload.xml
@@ -48,15 +48,87 @@
android:textColor="@android:color/white"
/>
-
+ android:gravity="center"
+ android:orientation="horizontal">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_image_details.xml b/app/src/main/res/layout/welcome_image_details.xml
index 0b4618b37..e38eb5979 100644
--- a/app/src/main/res/layout/welcome_image_details.xml
+++ b/app/src/main/res/layout/welcome_image_details.xml
@@ -32,15 +32,101 @@
android:textColor="@android:color/white"
/>
-
+ android:gravity="center"
+ android:orientation="horizontal">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3ddc44287..2ba510572 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,6 +1,7 @@
Commons
+ •
Settings
Username
Password
@@ -120,11 +121,20 @@
Wikimedia Commons hosts most of the images that are used in Wikipedia.
Your images help educate people around the world!
Please upload pictures that are taken or created entirely by yourself:
- - Natural objects (flowers, animals, mountains)\n- Useful objects (bicycles, train stations)\n- Famous people (your mayor, Olympic athletes you met)
+ Natural objects (flowers, animals, mountains)\n• Useful objects (bicycles, train stations)\n• Famous people (your mayor, Olympic athletes you met)
+ Natural objects (flowers, animals, mountains)
+ Useful objects (bicycles, train stations)
+ Famous people (your mayor, Olympic athletes you met)
Please do NOT upload:
- Selfies or pictures of your friends\n- Pictures you downloaded from the Internet\n- Screenshots of proprietary apps
+ Selfies or pictures of your friends
+ Pictures you downloaded from the Internet
+ Screenshots of proprietary apps
Example upload:
- Title: Sydney Opera House\n- Description: Sydney Opera House as viewed from across the bay\n- Categories: Sydney Opera House from the west, Sydney Opera House remote views
+ Title: Sydney Opera House
+ Description: Sydney Opera House as viewed from across the bay
+ Categories: Sydney Opera House from the west, Sydney Opera House remote views
Contribute your images. Help Wikipedia articles come to life!
Images on Wikipedia come from Wikimedia Commons.
Your images help educate people around the world.
@@ -214,6 +224,7 @@
Login to your account
Send log file
Send log file to developers via email
+ Error! URL not found
Location has not changed.
Location not available.