diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchMessages.java b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchMessages.java index f2fc9b3a..bc738b83 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchMessages.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchMessages.java @@ -87,7 +87,7 @@ class FetchMessages { Calendar submitTimeCalendar = Calendar.getInstance(); submitTimeCalendar.setTimeInMillis(timeUTC); - String formattedTime = new SimpleDateFormat("MMM d, YYYY, HH:mm", + String formattedTime = new SimpleDateFormat("MMM d, yyyy, HH:mm", locale).format(submitTimeCalendar.getTime()); messages.add(new Message(kind, subredditName, subredditNamePrefixed, id, fullname, subject, diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/LoginActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/LoginActivity.java index 9b053749..fc19b2c4 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/LoginActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/LoginActivity.java @@ -92,6 +92,7 @@ public class LoginActivity extends AppCompatActivity { WebView webView = findViewById(R.id.webview_login_activity); webView.getSettings().setJavaScriptEnabled(true); + webView.getSettings().setDomStorageEnabled(true); Uri baseUri = Uri.parse(RedditUtils.OAUTH_URL); Uri.Builder uriBuilder = baseUri.buildUpon(); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a029821d..b5b5e949 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -273,6 +273,7 @@ Device default Lazy Mode Interval Enable NSFW + Display under navigation bar and status bar About Acknowledgement Credits diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index bdf0f2a6..e8ed98d8 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -27,7 +27,7 @@ + app:title="@string/settings_enable_nsfw_title" />