summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <tschneider.ac@gmail.com>2020-06-06 18:47:14 +0200
committerThomas <tschneider.ac@gmail.com>2020-06-06 18:47:14 +0200
commitce858751b195e736b5d274c30460a1fac21c862c (patch)
tree520268f5fc30615eaa9eca8539a3788cb4a72c54
parentd6e73438115923699127ab8abb840728259e56b7 (diff)
parentf71778d8ec977875342c2558d176f708c1095319 (diff)
Merge branch 'develop'
-rw-r--r--app/build.gradle6
-rw-r--r--app/fdroid/release/app-fdroid-release-2.5.0-fix.apkbin24408957 -> 0 bytes
-rw-r--r--app/src/main/AndroidManifest.xml1
-rw-r--r--app/src/main/assets/changelogs/342.txt12
-rw-r--r--app/src/main/assets/changelogs/343.txt6
-rw-r--r--app/src/main/assets/changelogs/344.txt14
-rw-r--r--app/src/main/assets/changelogs/345.txt6
-rw-r--r--app/src/main/assets/changelogs/346.txt6
-rw-r--r--app/src/main/assets/changelogs/347.txt13
-rw-r--r--app/src/main/assets/changelogs/348.txt5
-rw-r--r--app/src/main/assets/changelogs/349.txt13
-rw-r--r--app/src/main/assets/changelogs/350.txt7
-rw-r--r--app/src/main/assets/changelogs/354.txt9
-rw-r--r--app/src/main/assets/changelogs/355.txt14
-rw-r--r--app/src/main/assets/changelogs/356.txt4
-rw-r--r--app/src/main/assets/changelogs/357.txt9
-rw-r--r--app/src/main/assets/changelogs/358.txt11
-rw-r--r--app/src/main/assets/changelogs/359.txt8
-rw-r--r--app/src/main/assets/changelogs/360.txt9
-rw-r--r--app/src/main/assets/changelogs/362.txt3
-rw-r--r--app/src/main/assets/changelogs/363.txt4
-rw-r--r--app/src/main/assets/changelogs/369.txt10
-rw-r--r--app/src/main/java/app/fedilab/android/activities/BaseActivity.java2
-rw-r--r--app/src/main/java/app/fedilab/android/activities/LoginActivity.java7
-rw-r--r--app/src/main/java/app/fedilab/android/activities/TootActivity.java93
-rw-r--r--app/src/main/java/app/fedilab/android/activities/WebviewActivity.java2
-rw-r--r--app/src/main/java/app/fedilab/android/activities/WebviewConnectActivity.java5
-rw-r--r--app/src/main/java/app/fedilab/android/client/Entities/Account.java14
-rw-r--r--app/src/main/java/app/fedilab/android/client/Entities/Status.java45
-rw-r--r--app/src/main/java/app/fedilab/android/drawers/PixelfedListAdapter.java2
-rw-r--r--app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java2
-rw-r--r--app/src/main/java/app/fedilab/android/fragments/ContentSettingsFragment.java4
-rw-r--r--app/src/main/java/app/fedilab/android/fragments/DisplayStatusFragment.java41
-rw-r--r--app/src/main/java/app/fedilab/android/helper/Helper.java7
-rw-r--r--app/src/main/java/app/fedilab/android/services/LiveNotificationDelayedService.java8
-rw-r--r--app/src/main/java/app/fedilab/android/services/LiveNotificationService.java8
-rw-r--r--app/src/main/java/app/fedilab/android/sqlite/StatusCacheDAO.java5
-rw-r--r--app/src/main/res/values-ar/strings.xml20
-rw-r--r--app/src/main/res/values-bn/strings.xml320
-rw-r--r--app/src/main/res/values-ca/strings.xml8
-rw-r--r--app/src/main/res/values-da/strings.xml10
-rw-r--r--app/src/main/res/values-eu/strings.xml12
-rw-r--r--app/src/main/res/values-it/strings.xml10
-rw-r--r--app/src/main/res/values-ru/strings.xml12
-rw-r--r--app/src/main/res/values-szl/strings.xml1140
-rw-r--r--app/src/main/res/values-tr/strings.xml88
-rw-r--r--app/src/main/res/values-zh-rCN/strings.xml10
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--build.gradle2
-rw-r--r--fastlane/metadata/android/en-US/changelogs/369.txt10
-rw-r--r--fastlane/metadata/android/szl/full_description.txt16
-rw-r--r--fastlane/metadata/android/szl/short_description.txt1
-rw-r--r--gradle/wrapper/gradle-wrapper.properties4
53 files changed, 1567 insertions, 512 deletions
diff --git a/app/build.gradle b/app/build.gradle
index e187c9ba9..dc61365fd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
- versionCode 368
- versionName "2.35.4"
+ versionCode 369
+ versionName "2.35.5"
multiDexEnabled true
renderscriptTargetApi 28 as int
renderscriptSupportModeEnabled true
@@ -89,7 +89,7 @@ dependencies {
annotationProcessor 'com.android.support:support-annotations:28.0.0'
implementation "org.conscrypt:conscrypt-android:2.4.0"
implementation "com.evernote:android-job:1.2.6"
- implementation "com.google.code.gson:gson:2.8.5"
+ implementation "com.google.code.gson:gson:2.8.6"
implementation "com.google.guava:guava:28.2-android"
implementation "com.github.chrisbanes:PhotoView:2.3.0"
implementation 'com.r0adkll:slidableactivity:2.1.0'
diff --git a/app/fdroid/release/app-fdroid-release-2.5.0-fix.apk b/app/fdroid/release/app-fdroid-release-2.5.0-fix.apk
deleted file mode 100644
index 7488e0762..000000000
--- a/app/fdroid/release/app-fdroid-release-2.5.0-fix.apk
+++ /dev/null
Binary files differ
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 13177a62c..f01b939ca 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -111,6 +111,7 @@
android:name="app.fedilab.android.activities.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
+ android:launchMode="singleTask"
android:theme="@style/AppThemeDark_NoActionBar"
android:windowSoftInputMode="adjustResize">
<intent-filter>
diff --git a/app/src/main/assets/changelogs/342.txt b/app/src/main/assets/changelogs/342.txt
deleted file mode 100644
index 2d2b53d36..000000000
--- a/app/src/main/assets/changelogs/342.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Added
-- Unshortened URLs can be copied or shared
-- Trends in tags search
-- Image are shared/stored from cache
-- Message when a media is successfully downloaded
-
-Fixed
-- Issue with polls not displayed
-- Notifications not stopped
-- Pleroma wysiwyg
-- Login issue
-- Some crashes \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/343.txt b/app/src/main/assets/changelogs/343.txt
deleted file mode 100644
index 769ebc05d..000000000
--- a/app/src/main/assets/changelogs/343.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Added
-- Follow Nitter feeds (ie: Twitter account timelines)
-
-Fixed
-- Crash issue when no live notifications
-- Trends can't be hidden
diff --git a/app/src/main/assets/changelogs/344.txt b/app/src/main/assets/changelogs/344.txt
deleted file mode 100644
index dd079ee1a..000000000
--- a/app/src/main/assets/changelogs/344.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Added
-- Original & boost dates added separately
-- Follow request notifications
-- Identity proofs support
-
-Changed
-- Media are preloaded when scrolling
-- Improve live/delayed notifications
-
-Fixed
-- Counter for mentions
-- Preview images displayed twice
-- Media not saved on Android 10+
-- Issue when following instances/pinging tags \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/345.txt b/app/src/main/assets/changelogs/345.txt
deleted file mode 100644
index 8bcd296b8..000000000
--- a/app/src/main/assets/changelogs/345.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Added
-- Friendica: Authorize/Reject follow requests
-
-Fixed
-- Not cropped media
-- Crash when starting the app \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/346.txt b/app/src/main/assets/changelogs/346.txt
deleted file mode 100644
index 8bcd296b8..000000000
--- a/app/src/main/assets/changelogs/346.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Added
-- Friendica: Authorize/Reject follow requests
-
-Fixed
-- Not cropped media
-- Crash when starting the app \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/347.txt b/app/src/main/assets/changelogs/347.txt
deleted file mode 100644
index 0153a50d5..000000000
--- a/app/src/main/assets/changelogs/347.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-Added
-- Pixelfed: post media to stories
-- Long press bio to open the contextual menu
-- Allow to invite with Pleroma
-
-Changed
-- Import theme always visible
-- Improve login activity
-
-Fixed
-- Filter with regex
-- Issues with talk back and magnifying glass
-- Some crashes \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/348.txt b/app/src/main/assets/changelogs/348.txt
deleted file mode 100644
index 9fc1b98cd..000000000
--- a/app/src/main/assets/changelogs/348.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-Fixed:
-- Mentions with delete & re-draft for Pleroma accounts
-- Nitter timelines with refresh
-- Remove notification bar for Android 8-
-- Fix "No Internet connection" error on some instances when posting \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/349.txt b/app/src/main/assets/changelogs/349.txt
deleted file mode 100644
index 6f838f0a0..000000000
--- a/app/src/main/assets/changelogs/349.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-Added:
-- Català language
-- Push notifications for Friendica & GNU Social
-- Add follow/unfollow buttons for Pixelfed
-- View your own story (need to wait the endpoint)
-- Increase max bio chars to 500 for Pleroma
-
-Fixed:
-- Proxy not applied with embedded videos
-- Fix no toots that remains displayed on Nitter timelines
-- Avoid to lose composed message when not sent
-- Notifications not pushed
-- Fix some crashes \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/350.txt b/app/src/main/assets/changelogs/350.txt
deleted file mode 100644
index a1a3b198d..000000000
--- a/app/src/main/assets/changelogs/350.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Added:
-- Text selectable for fields in profiles
-
-Fixed:
-- Fix the scrolling issue in timelines
-- Peertube videos crashes
-- Color of the compose menu for the light theme \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/354.txt b/app/src/main/assets/changelogs/354.txt
deleted file mode 100644
index 95e6e4b04..000000000
--- a/app/src/main/assets/changelogs/354.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Added:
-- Announcements for Mastodon with reactions
-- Pleroma: reactions in posts
-
-Changed:
-- Filters changed to speed-up the scroll
-
-Fixed:
-- Custom emojis not displayed in compose activity \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/355.txt b/app/src/main/assets/changelogs/355.txt
deleted file mode 100644
index 573d2e8a4..000000000
--- a/app/src/main/assets/changelogs/355.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Added:
-- Allow to edit searches
-
-Changed:
-- Move the favourite item in menu
-
-Fixed:
-- Filters not working
-- Crash when sharing http URLs
-- Missing ogg image when sharing
-- Extra space with quick replies
-- Crash when doing searches
-- Fix crash when clicking on conversations
-- Fix crash when editing profile \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/356.txt b/app/src/main/assets/changelogs/356.txt
deleted file mode 100644
index 7737b5063..000000000
--- a/app/src/main/assets/changelogs/356.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Fixed:
-- Crash due to a library update
-- Missing animate profile pictures
-- Fix some color issues \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/357.txt b/app/src/main/assets/changelogs/357.txt
deleted file mode 100644
index 3b01064b7..000000000
--- a/app/src/main/assets/changelogs/357.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Changed:
-- Improve memory management
-- Improve scroll
-- One logout entry in the menu (it will remove the account from the app)
-- Clear push notifications when visiting notifications tab
-
-Fixed:
-- Long press to store media download the preview image
-- Fix pagination with Nitter timelines \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/358.txt b/app/src/main/assets/changelogs/358.txt
deleted file mode 100644
index 1d6b959b1..000000000
--- a/app/src/main/assets/changelogs/358.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Changed:
-- Improve memory management
-- Improve scroll
-- Poll layouts cleaner
-- One logout entry in the menu (it will remove the account from the app)
-- Clear push notifications when visiting notifications tab
-
-Fixed:
-- Long press to store media download the preview image
-- Fix pagination with Nitter timelines
-- Avatars not displayed for Peertube \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/359.txt b/app/src/main/assets/changelogs/359.txt
deleted file mode 100644
index d2c164b6b..000000000
--- a/app/src/main/assets/changelogs/359.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-Added:
-- Gif support for some keyboards.
-- Support animated emoji for reactions
-
-Fixed:
-- Crash when playing Youtube videos in timelines
-- Announcements not displayed
-- A crash due to recent changes \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/360.txt b/app/src/main/assets/changelogs/360.txt
deleted file mode 100644
index 4c3b093ba..000000000
--- a/app/src/main/assets/changelogs/360.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Added:
-- Gif support for some keyboards.
-- Support animated emoji for reactions
-
-Fixed:
-- Crash when playing Youtube videos in timelines
-- Announcements not displayed
-- A crash due to recent changes
-- +Fix a crash due to polls \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/362.txt b/app/src/main/assets/changelogs/362.txt
deleted file mode 100644
index d6316cd3b..000000000
--- a/app/src/main/assets/changelogs/362.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Fixed:
-- Empty content for Friendica/GNU accounts
-- Username can't be changed in profile \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/363.txt b/app/src/main/assets/changelogs/363.txt
deleted file mode 100644
index 9b2e9153b..000000000
--- a/app/src/main/assets/changelogs/363.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Fixed:
-- Lot of crashes 🥺🥺😱
-- Push notifications not working
-- Some issues with filters \ No newline at end of file
diff --git a/app/src/main/assets/changelogs/369.txt b/app/src/main/assets/changelogs/369.txt
new file mode 100644
index 000000000..1bf9975c3
--- /dev/null
+++ b/app/src/main/assets/changelogs/369.txt
@@ -0,0 +1,10 @@
+Added:
+- Silesian localization
+
+Changed:
+- Add Silesian in language picker
+
+Fixed:
+- Some URLs not clickable
+- Empty home timeline
+- Some crashes when scrolling \ No newline at end of file
diff --git a/app/src/main/java/app/fedilab/android/activities/BaseActivity.java b/app/src/main/java/app/fedilab/android/activities/BaseActivity.java
index 6ecb3e377..96f7a25d9 100644
--- a/app/src/main/java/app/fedilab/android/activities/BaseActivity.java
+++ b/app/src/main/java/app/fedilab/android/activities/BaseActivity.java
@@ -6,7 +6,6 @@ import android.content.Context;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.os.Bundle;
-import android.os.StrictMode;
import android.view.ActionMode;
import android.view.View;
import android.widget.Toast;
@@ -25,7 +24,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Timer;
-import app.fedilab.android.BuildConfig;
import app.fedilab.android.helper.Helper;
import es.dmoral.toasty.Toasty;
diff --git a/app/src/main/java/app/fedilab/android/activities/LoginActivity.java b/app/src/main/java/app/fedilab/android/activities/LoginActivity.java
index 692f0c430..5207547ff 100644
--- a/app/src/main/java/app/fedilab/android/activities/LoginActivity.java
+++ b/app/src/main/java/app/fedilab/android/activities/LoginActivity.java
@@ -593,7 +593,12 @@ public class LoginActivity extends BaseActivity {
editor.putString(Helper.PREF_KEY_OAUTH_TOKEN, token);
editor.apply();
//Update the account with the token;
- new UpdateAccountInfoAsyncTask(LoginActivity.this, token, client_id, client_secret, refresh_token, instance, socialNetwork).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
+ if (instance != null) {
+ new UpdateAccountInfoAsyncTask(LoginActivity.this, token, client_id, client_secret, refresh_token, instance, socialNetwork).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
+ } else {
+ connectionButton.setEnabled(true);
+ Toasty.error(LoginActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
+ }
} catch (JSONException e) {
e.printStackTrace();
}
diff --git a/app/src/main/java/app/fedilab/android/activities/TootActivity.java b/app/src/main/java/app/fedilab/android/activities/TootActivity.java
index 569ea9867..b57b77ae5 100644
--- a/app/src/main/java/app/fedilab/android/activities/TootActivity.java
+++ b/app/src/main/java/app/fedilab/android/activities/TootActivity.java
@@ -207,6 +207,7 @@ import static app.fedilab.android.helper.Helper.THEME_BLACK;
import static app.fedilab.android.helper.Helper.THEME_DARK;
import static app.fedilab.android.helper.Helper.THEME_LIGHT;
import static app.fedilab.android.helper.Helper.countWithEmoji;
+import static app.fedilab.android.helper.Helper.isValidContextForGlide;
/**
@@ -646,7 +647,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
}
}
- public static String manageMentions(Context context, String userIdReply, Status tootReply) {
+ public static String manageMentions(String userIdReply, Status tootReply) {
String contentView = "";
//Retrieves mentioned accounts + OP and adds them at the beginin of the toot
ArrayList<String> mentionedAccountsAdded = new ArrayList<>();
@@ -1340,53 +1341,57 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
it.remove();
}
if (fileName != null) {
- Glide.with(imageView.getContext())
- .asBitmap()
- .load(fileName)
- .into(new CustomTarget<Bitmap>() {
- @Override
- public void onResourceReady(@NonNull Bitmap resource, Transition<? super Bitmap> transition) {
- imageView.setImageBitmap(resource);
- }
+ if (isValidContextForGlide(imageView.getContext())) {
+ Glide.with(imageView.getContext())
+ .asBitmap()
+ .load(fileName)
+ .into(new CustomTarget<Bitmap>() {
+ @Override
+ public void onResourceReady(@NonNull Bitmap resource, Transition<? super Bitmap> transition) {
+ imageView.setImageBitmap(resource);
+ }
- @Override
- public void onLoadCleared(@Nullable Drawable placeholder) {
+ @Override
+ public void onLoadCleared(@Nullable Drawable placeholder) {
- }
- });
+ }
+ });
+ }
}
}
} else {
- String finalUrl = url;
- Glide.with(imageView.getContext())
- .asBitmap()
- .load(url)
- .error(Glide.with(imageView).asBitmap().load(R.drawable.ic_audio_wave))
- .into(new CustomTarget<Bitmap>() {
- @Override
- public void onResourceReady(@NonNull Bitmap resource, Transition<? super Bitmap> transition) {
- imageView.setImageBitmap(resource);
- if (displayWYSIWYG()) {
- url_for_media = finalUrl;
- Iterator it = filesMap.entrySet().iterator();
- String fileName = null;
- while (it.hasNext()) {
- Map.Entry pair = (Map.Entry) it.next();
- fileName = (String) pair.getKey();
- it.remove();
- }
- if (fileName != null && fileName.contains("fedilabins_")) {
- wysiwyg.insertImage(resource);
+ if (isValidContextForGlide(imageView.getContext())) {
+ String finalUrl = url;
+ Glide.with(imageView.getContext())
+ .asBitmap()
+ .load(url)
+ .error(Glide.with(imageView).asBitmap().load(R.drawable.ic_audio_wave))
+ .into(new CustomTarget<Bitmap>() {
+ @Override
+ public void onResourceReady(@NonNull Bitmap resource, Transition<? super Bitmap> transition) {
+ imageView.setImageBitmap(resource);
+ if (displayWYSIWYG()) {
+ url_for_media = finalUrl;
+ Iterator it = filesMap.entrySet().iterator();
+ String fileName = null;
+ while (it.hasNext()) {
+ Map.Entry pair = (Map.Entry) it.next();
+ fileName = (String) pair.getKey();
+ it.remove();
+ }
+ if (fileName != null && fileName.contains("fedilabins_")) {
+ wysiwyg.insertImage(resource);
+ }
}
}
- }
- @Override
- public void onLoadCleared(@Nullable Drawable placeholder) {
+ @Override
+ public void onLoadCleared(@Nullable Drawable placeholder) {
- }
- });
+ }
+ });
+ }
}
@@ -2246,8 +2251,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
if (namebar != null && namebar.getParent() != null)
((ViewGroup) namebar.getParent()).removeView(namebar);
}
- List<Attachment> tmp_attachment = new ArrayList<>();
- tmp_attachment.addAll(attachments);
+ List<Attachment> tmp_attachment = new ArrayList<>(attachments);
attachments.removeAll(tmp_attachment);
tmp_attachment.clear();
}
@@ -2585,8 +2589,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
if (namebar != null && namebar.getParent() != null)
((ViewGroup) namebar.getParent()).removeView(namebar);
}
- List<Attachment> tmp_attachment = new ArrayList<>();
- tmp_attachment.addAll(attachments);
+ List<Attachment> tmp_attachment = new ArrayList<>(attachments);
attachments.removeAll(tmp_attachment);
tmp_attachment.clear();
}
@@ -3069,9 +3072,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
}
});
imageView.setTag(attachment.getId());
- imageView.setOnClickListener(view -> {
- imageView.setOnClickListener(view1 -> showAddDescription(attachment));
- });
+ imageView.setOnClickListener(view -> imageView.setOnClickListener(view1 -> showAddDescription(attachment)));
imageView.setOnLongClickListener(view -> {
showRemove(imageView.getId());
return false;
@@ -3396,7 +3397,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
private void displayPollPopup() {
AlertDialog.Builder alertPoll = new AlertDialog.Builder(TootActivity.this, style);
alertPoll.setTitle(R.string.create_poll);
- View view = getLayoutI