Commit e1e5284a authored by Thomas's avatar Thomas
Browse files

Release 3.9.0

parent 99599048
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ android {
    defaultConfig {
        minSdk 21
        targetSdk 32
        versionCode 434
        versionName "3.8.1"
        versionCode 435
        versionName "3.9.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    flavorDimensions "default"
+5 −0
Original line number Diff line number Diff line
[
  {
    "version": "3.9.0",
    "code": "435",
    "note": "Added:\n- Migrate to Material Design 3\n- 5 Themes (Light, Dark, Solarized Light/Dark, Black)\n- Automatically switch between Light/Dark\n- Light and Dark theme can be defined for time-based switch\n- Android 12+: Dynamic color\n\nFixed:\n- Jumps in timelines\n"
  },
  {
    "version": "3.8.1",
    "code": "434",
+6 −5
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AlertDialog;
import androidx.core.app.ActivityCompat;
import androidx.core.app.ActivityOptionsCompat;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.ViewModelProvider;
@@ -148,8 +149,7 @@ public class ProfileActivity extends BaseActivity {
            mention_str = b.getString(Helper.ARG_MENTION, null);
            checkRemotely = b.getBoolean(Helper.ARG_CHECK_REMOTELY, false);
        }
        postponeEnterTransition();

        ActivityCompat.postponeEnterTransition(ProfileActivity.this);
        //Remove title
        if (actionBar != null) {
            actionBar.setDisplayShowTitleEnabled(false);
@@ -270,18 +270,19 @@ public class ProfileActivity extends BaseActivity {
                            @Override
                            public void onResourceReady(@NonNull final Drawable resource, Transition<? super Drawable> transition) {
                                binding.profilePicture.setImageDrawable(resource);
                                startPostponedEnterTransition();
                                ActivityCompat.startPostponedEnterTransition(ProfileActivity.this);
                            }

                            @Override
                            public void onLoadFailed(@Nullable Drawable errorDrawable) {
                                binding.profilePicture.setImageResource(R.drawable.ic_person);
                                startPostponedEnterTransition();
                                ActivityCompat.startPostponedEnterTransition(ProfileActivity.this);
                            }

                            @Override
                            public void onLoadCleared(@Nullable Drawable placeholder) {

                                binding.profilePicture.setImageResource(R.drawable.ic_person);
                                ActivityCompat.startPostponedEnterTransition(ProfileActivity.this);
                            }
                        }
                );
+6 −6
Original line number Diff line number Diff line
@@ -164,16 +164,16 @@ public class NotificationAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
            AccountsVM accountsVM = new ViewModelProvider((ViewModelStoreOwner) context).get(AccountsVM.class);
            holderFollow.binding.rejectButton.setOnClickListener(v -> accountsVM.rejectFollow(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, notification.account.id)
                    .observe((LifecycleOwner) context, relationShip -> {
                        if (notificationList.size() > position) {
                            notificationList.remove(position);
                            notifyItemRemoved(position);
                        if (notificationList.size() > holderFollow.getBindingAdapterPosition()) {
                            notificationList.remove(holderFollow.getBindingAdapterPosition());
                            notifyItemRemoved(holderFollow.getBindingAdapterPosition());
                        }
                    }));
            holderFollow.binding.acceptButton.setOnClickListener(v -> accountsVM.acceptFollow(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, notification.account.id)
                    .observe((LifecycleOwner) context, relationShip -> {
                        if (notificationList.size() > position) {
                            notificationList.remove(position);
                            notifyItemRemoved(position);
                        if (notificationList.size() > holderFollow.getBindingAdapterPosition()) {
                            notificationList.remove(holderFollow.getBindingAdapterPosition());
                            notifyItemRemoved(holderFollow.getBindingAdapterPosition());
                        }
                    }));
            holderFollow.binding.avatar.setOnClickListener(v -> {
+2 −0
Original line number Diff line number Diff line
@@ -1191,6 +1191,7 @@ public class AccountsVM extends AndroidViewModel {
                    if (acceptFollowResponse.isSuccessful()) {
                        relationShip = acceptFollowResponse.body();
                    }
                    new StatusCache(getApplication().getApplicationContext()).deleteStatus(instance, id);
                } catch (Exception e) {
                    e.printStackTrace();
                }
@@ -1221,6 +1222,7 @@ public class AccountsVM extends AndroidViewModel {
                    if (rejectFollowResponse.isSuccessful()) {
                        relationShip = rejectFollowResponse.body();
                    }
                    new StatusCache(getApplication().getApplicationContext()).deleteStatus(instance, id);
                } catch (Exception e) {
                    e.printStackTrace();
                }
Loading