Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikafasi committed May 8, 2023
1 parent bb79123 commit d015888
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {

CollectionUtils.filter(data,plugin -> plugin.getName().toLowerCase().contains("pog"));

Plugin p = data.get(position);
Plugin.Manifest manifest = p.getManifest();

Expand Down
2 changes: 1 addition & 1 deletion ReviewDB/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.0"
version = "1.0.1"
description = "Review other users and servers"
aliucord {
author("Ven",343383572805058560)
Expand Down
6 changes: 4 additions & 2 deletions ReviewDB/src/main/java/com/aliucord/plugins/ReviewDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.widget.LinearLayout;

import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentManager;

import com.aliucord.Constants;
import com.aliucord.Http;
Expand Down Expand Up @@ -40,7 +41,7 @@ public class ReviewDB extends Plugin {
public static Logger logger = new Logger("UserReviews");
int viewID = View.generateViewId();
public static List<Long> AdminList = new ArrayList<>();
public static WidgetUserSheet userSheet;
public static FragmentManager fragmentManager;
public static PatcherAPI staticPatcher;

@SuppressLint("SetTextI18n")
Expand Down Expand Up @@ -95,6 +96,7 @@ public void start(Context context) {
try {
patcher.patch(WidgetGuildProfileSheet.class.getDeclaredMethod("configureUI", WidgetGuildProfileSheetViewModel.ViewState.Loaded.class), new Hook(cf -> {
var viewstate = (WidgetGuildProfileSheetViewModel.ViewState.Loaded) cf.args[0];
fragmentManager = ((WidgetGuildProfileSheet) cf.thisObject).getChildFragmentManager();

var linearLayout = (LinearLayout) (WidgetGuildProfileSheet.access$getGuildActionBinding$p((WidgetGuildProfileSheet) cf.thisObject)).getRoot();
var ctx = linearLayout.getContext();
Expand All @@ -117,7 +119,7 @@ public void start(Context context) {

var scrollView = (NestedScrollView) (WidgetUserSheet.access$getBinding$p((WidgetUserSheet) cf.thisObject)).getRoot();
var ctx = scrollView.getContext();
userSheet = (WidgetUserSheet)cf.thisObject;
fragmentManager = ((WidgetUserSheet) cf.thisObject).getChildFragmentManager();

if (scrollView.findViewById(viewID) == null) {

Expand Down
4 changes: 2 additions & 2 deletions ReviewDB/src/main/java/com/aliucord/plugins/RoleIconView.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public RoleIconView(@NonNull Context context, Badge badge) {

setOnClickListener(view -> {
var sheet = new BadgeBottomShit(getContext(),badge);
if (ReviewDB.userSheet != null)
sheet.show(ReviewDB.userSheet.getChildFragmentManager(), "sheet");
if (ReviewDB.fragmentManager != null)
sheet.show(ReviewDB.fragmentManager, "sheet");
});

setOnLongClickListener(view -> {
Expand Down
2 changes: 1 addition & 1 deletion VoiceMessages/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.0.8"
version = "1.0.9"
description = "Send Voice Messages"

aliucord.changelog.set("""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.LinearLayout;

import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
Expand Down Expand Up @@ -130,9 +132,9 @@ public void start(Context context) throws NoSuchMethodException, NoSuchFieldExce

var buttonViewGroup = ((ViewGroup) input.getView().findViewById(Utils.getResId("main_input_container", "id")));
viewgroup.addView(recordButton);
var params = (ViewGroup.LayoutParams) waveFormView.getLayoutParams();
var params = (LinearLayout.LayoutParams) waveFormView.getLayoutParams();
params.height = DimenUtils.dpToPx(30);

params.gravity = Gravity.CENTER;
});

patcher.patch(WidgetChatInputEditText$setOnTextChangedListener$1.class.getDeclaredMethod("afterTextChanged", Editable.class), cf -> {
Expand Down

0 comments on commit d015888

Please sign in to comment.