Merge remote-tracking branch 'origin/master'

# Conflicts:
#	main/src/main/java/com/yunbao/main/activity/MainActivity.java
This commit is contained in:
zlzw 2022-11-18 15:30:42 +08:00
commit 4a28abf5b7
8 changed files with 12 additions and 15 deletions

View File

@ -48,7 +48,7 @@ public class DrawerTaskAdapter extends RecyclerView.Adapter {
@Override @Override
public int getItemCount() { public int getItemCount() {
return child.size(); return 2;
} }
public void updateData(List<CustomSidebarChildModel> mChild) { public void updateData(List<CustomSidebarChildModel> mChild) {

View File

@ -9,7 +9,7 @@
<item android:state_enabled="false"> <item android:state_enabled="false">
<shape> <shape>
<corners android:radius="7dp" /> <corners android:radius="7dp" />
<solid android:color="#2fff" /> <solid android:color="#2C2B39" />
</shape> </shape>
</item> </item>
</selector> </selector>

View File

@ -3,7 +3,7 @@
<item> <item>
<shape> <shape>
<corners android:radius="12.5dp" /> <corners android:radius="12.5dp" />
<solid android:color="#95FFFFFF" /> <solid android:color="#40FFFFFF" />
</shape> </shape>
</item> </item>
</selector> </selector>

View File

@ -28,6 +28,5 @@
android:id="@+id/child_list" android:id="@+id/child_list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" /> android:layout_marginBottom="16dp" />
</LinearLayout> </LinearLayout>

View File

@ -25,7 +25,7 @@ ext {
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S", baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
// true表示谷歌支付 false // true表示谷歌支付 false
isGooglePlay : false, isGooglePlay : true,
// //
isUploadLog : false isUploadLog : false
] ]

View File

@ -220,9 +220,9 @@ public class GoogleFragment extends Fragment {
@Override @Override
public void onPayFailed(int code, String msg) { public void onPayFailed(int code, String msg) {
Log.e("谷歌支付",code+msg);
} }
}).checkSku(event.getPostsId()) }).checkSku(event.getProductId())
; ;
//下单 //下单
Bundle params = new Bundle(); Bundle params = new Bundle();

View File

@ -7,19 +7,16 @@ import android.animation.Animator;
import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator; import android.animation.ObjectAnimator;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog; import android.app.Dialog;
import android.app.NotificationChannel; import android.app.NotificationChannel;
import android.app.PendingIntent; import android.app.PendingIntent;
import android.content.ClipData; import android.content.ClipData;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.provider.Settings;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.view.Display; import android.view.Display;
@ -32,9 +29,6 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.viewpager.widget.ViewPager; import androidx.viewpager.widget.ViewPager;
import com.alibaba.android.arouter.facade.annotation.Route; import com.alibaba.android.arouter.facade.annotation.Route;
@ -70,6 +64,7 @@ import com.yunbao.common.dialog.HintDialog;
import com.yunbao.common.dialog.InstructorOperationDialog; import com.yunbao.common.dialog.InstructorOperationDialog;
import com.yunbao.common.event.InstructorOperationEvent; import com.yunbao.common.event.InstructorOperationEvent;
import com.yunbao.common.event.LiveFloatEvent; import com.yunbao.common.event.LiveFloatEvent;
import com.yunbao.common.event.MainHomeCommunityToChatEvent;
import com.yunbao.common.event.MessageIMEvent; import com.yunbao.common.event.MessageIMEvent;
import com.yunbao.common.event.NoviceInstructorEvent; import com.yunbao.common.event.NoviceInstructorEvent;
import com.yunbao.common.event.RongIMConnectionStatusEvent; import com.yunbao.common.event.RongIMConnectionStatusEvent;
@ -106,7 +101,6 @@ import com.yunbao.main.R;
import com.yunbao.main.dialog.MainStartDialogFragment; import com.yunbao.main.dialog.MainStartDialogFragment;
import com.yunbao.main.dialog.ReturnUserDialog; import com.yunbao.main.dialog.ReturnUserDialog;
import com.yunbao.main.dialog.SigninDialog; import com.yunbao.main.dialog.SigninDialog;
import com.yunbao.common.event.MainHomeCommunityToChatEvent;
import com.yunbao.main.event.PDLiveConversationListEvent; import com.yunbao.main.event.PDLiveConversationListEvent;
import com.yunbao.main.http.MainHttpConsts; import com.yunbao.main.http.MainHttpConsts;
import com.yunbao.main.http.MainHttpUtil; import com.yunbao.main.http.MainHttpUtil;
@ -488,7 +482,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
@Override @Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults); super.onRequestPermissionsResult(requestCode, permissions, grantResults);
Log.i("权限","requestCode = " + requestCode + ", permissions = " + Arrays.deepToString(permissions) + ", grantResults = " + Arrays.toString(grantResults)); Log.i("权限", "requestCode = " + requestCode + ", permissions = " + Arrays.deepToString(permissions) + ", grantResults = " + Arrays.toString(grantResults));
} }
@Override @Override
@ -935,6 +929,9 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
if (IMLoginManager.get(mContext).isisNewUserOne() == false) { if (IMLoginManager.get(mContext).isisNewUserOne() == false) {
//getD(); //取消在首页下载礼物svga操作 //getD(); //取消在首页下载礼物svga操作
} }
} else if (TextUtils.equals(str, "isCloseNavigation")) {
isTabClose = false;
rt_main_tab.setVisibility(View.VISIBLE);
} }
} }

View File

@ -439,6 +439,7 @@ public class MyWebViewActivity extends AbsActivity {
Constants.mStream = ""; Constants.mStream = "";
Constants.chatActionUrl = ""; Constants.chatActionUrl = "";
indexInto = 0; indexInto = 0;
EventBus.getDefault().post("isCloseNavigation");
super.onDestroy(); super.onDestroy();
} }