小红书.apk(点击下载) / BasicSettingConfig$configBasicSetting$35.java
package com.xingin.xhs.develop.config;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.TextView;
import bj2.c;
import com.xingin.android.xhscomm.router.Routers;
import com.xingin.devkit.ActionChangedListener;
import com.xingin.entities.chat.MsgUserBean;
import com.xingin.entities.chat.ShareGoodsToChatBean;
import com.xingin.entities.chat.SharePagesToChatBean;
import com.xingin.entities.chat.ShareToChatBean;
import com.xingin.entities.chat.ShareUserToChatBean;
import com.xingin.pages.PageExtensionsKt;
import com.xingin.pages.SharedUserPage;
import gk2.a;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016¨\u0006\u0006"}, d2 = {"com/xingin/xhs/develop/config/BasicSettingConfig$configBasicSetting$35", "Lcom/xingin/devkit/ActionChangedListener;", "onActionChanged", "", "createdView", "Landroid/view/View;", "app_PublishGooglePlayRelease"}, k = 1, mv = {1, 6, 0}, xi = 48)
/* compiled from: BasicSettingConfig.kt */
public final class BasicSettingConfig$configBasicSetting$35 implements ActionChangedListener {
/* access modifiers changed from: private */
/* renamed from: onActionChanged$lambda-8 reason: not valid java name */
public static final void m1051onActionChanged$lambda8(View view) {
String[] strArr = {"分享直播", "商品", "用户", "商品page"};
a aVar = new a(view.getContext(), strArr, null);
aVar.O("选择分享内容");
aVar.N(new g1(strArr, view, aVar));
aVar.show();
}
/* access modifiers changed from: private */
/* renamed from: onActionChanged$lambda-8$lambda-7$lambda-6 reason: not valid java name */
public static final void m1052onActionChanged$lambda8$lambda7$lambda6(String[] strArr, View view, a aVar, AdapterView adapterView, View view2, int i10, long j14) {
Intrinsics.checkNotNullParameter(strArr, "$items");
Intrinsics.checkNotNullParameter(aVar, "$this_apply");
String str = strArr[i10];
switch (str.hashCode()) {
case 698427:
if (str.equals("商品")) {
ShareGoodsToChatBean shareGoodsToChatBean = new ShareGoodsToChatBean(null, null, 0, null, null, null, 0, null, null, 511, null);
shareGoodsToChatBean.setAvatar("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
shareGoodsToChatBean.setImage("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
shareGoodsToChatBean.setBrandName("商品");
shareGoodsToChatBean.setDesc("hahahahahahaahahhaahahaha");
shareGoodsToChatBean.setPrice(100);
shareGoodsToChatBean.setLink("https://www.baidu.com");
SharedUserPage sharedUserPage = new SharedUserPage(shareGoodsToChatBean, false, null, 6, null);
Routers.build(sharedUserPage.getUrl()).with(PageExtensionsKt.toBundle(sharedUserPage)).open(view.getContext());
aVar.dismiss();
return;
}
return;
case 954895:
if (str.equals("用户")) {
ShareUserToChatBean shareUserToChatBean = new ShareUserToChatBean(null, null, 0, null, null, null, null, null, null, null, 0, null, false, 8191, null);
shareUserToChatBean.setAvatar("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
shareUserToChatBean.setOfficialVerifyType(1);
shareUserToChatBean.setUserName("用户");
shareUserToChatBean.setDesc("1234444");
shareUserToChatBean.setRedNumber("32343242");
shareUserToChatBean.setUserId("2131231232131");
SharedUserPage sharedUserPage2 = new SharedUserPage(shareUserToChatBean, false, null, 6, null);
Routers.build(sharedUserPage2.getUrl()).with(PageExtensionsKt.toBundle(sharedUserPage2)).open(view.getContext());
aVar.dismiss();
return;
}
return;
case 645874782:
if (str.equals("分享直播")) {
ShareToChatBean shareToChatBean = new ShareToChatBean(null, null, null, null, null, null, null, 127, null);
shareToChatBean.setType("live");
shareToChatBean.setTitle("来看我直播吧,行就答应,不行我再想办法~");
shareToChatBean.setContent("hahahaha");
shareToChatBean.setCover("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
shareToChatBean.setImage("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
shareToChatBean.setLink("https://www.baidu.com");
MsgUserBean msgUserBean = new MsgUserBean(false, false, null, null, 0, null, null, null, null, false, false, false, false, 0, 16383, null);
msgUserBean.setNickname("测试");
msgUserBean.setAvatar("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
msgUserBean.setImage("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
msgUserBean.setId("5ab8338b11be1011e79712c5");
msgUserBean.setOfficalVerifyType(0);
shareToChatBean.setSendUser(msgUserBean);
SharedUserPage sharedUserPage3 = new SharedUserPage(shareToChatBean, false, null, 6, null);
Routers.build(sharedUserPage3.getUrl()).with(PageExtensionsKt.toBundle(sharedUserPage3)).open(view.getContext());
aVar.dismiss();
return;
}
return;
case 770340170:
if (str.equals("商品page")) {
SharePagesToChatBean sharePagesToChatBean = new SharePagesToChatBean(null, null, null, null, null, 0, null, 0, null, null, 1023, null);
sharePagesToChatBean.setImage("https://img.xiaohongshu.com/avatar/5ab905adb46c5d505e3cdd5f.jpg@160w_160h_92q_1e_1c_1x.jpg");
sharePagesToChatBean.setBrandName("商品page");
sharePagesToChatBean.setDesc("hahahahahahhahahahahahahahahahahaa商品page");
sharePagesToChatBean.setNoteNum("21321");
sharePagesToChatBean.setRankTitle("zon");
sharePagesToChatBean.setRankType(0);
sharePagesToChatBean.setRanking(1);
sharePagesToChatBean.setLink("https://www.baidu.com");
SharedUserPage sharedUserPage4 = new SharedUserPage(sharePagesToChatBean, false, null, 6, null);
Routers.build(sharedUserPage4.getUrl()).with(PageExtensionsKt.toBundle(sharedUserPage4)).open(view.getContext());
aVar.dismiss();
return;
}
return;
default:
return;
}
}
@Override // com.xingin.devkit.ActionChangedListener
public void onActionChanged(View view) {
Intrinsics.checkNotNullParameter(view, "createdView");
KeyEvent.Callback callback = null;
for (KeyEvent.Callback callback2 : c.b(view)) {
if (callback2 instanceof TextView) {
callback = callback2;
}
}
TextView textView = (TextView) callback;
if (textView != null) {
textView.setOnClickListener(f1.f64397a);
}
}
}