正在查看: CallApp v2.226 应用的 MutualFriendsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 MutualFriendsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.callapp.contacts.activity.select;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.callapp.contacts.R;
import com.callapp.contacts.activity.base.BaseTopBarActivity;
import com.callapp.contacts.activity.select.MutualPersonAdapter;
import com.callapp.contacts.api.helper.facebook.FacebookHelper;
import com.callapp.contacts.api.helper.foursquare.FoursquareHelper;
import com.callapp.contacts.api.helper.instagram.InstagramHelper;
import com.callapp.contacts.api.helper.pinterest.PinterestHelper;
import com.callapp.contacts.api.helper.twitter.TwitterHelper;
import com.callapp.contacts.manager.FeedbackManager;
import com.callapp.contacts.model.PersonData;
import com.callapp.contacts.util.Activities;
import com.callapp.contacts.util.http.HttpUtils;
import com.callapp.framework.util.StringUtils;
import java.util.ArrayList;
public class MutualFriendsActivity extends BaseTopBarActivity {
public static final String PERSON_SELECT_LIST_KEY = "PERSON_SELECT_LIST_KEY";
public class AnonymousClass1 implements MutualPersonAdapter.ItemSelectListener {
public AnonymousClass1() {
}
}
public static void openPersonByType(Activity activity, PersonData personData) {
int type = personData.getType();
if (type == 1) {
FacebookHelper facebookHelper = FacebookHelper.get();
facebookHelper.getClass();
if (!HttpUtils.a()) {
FeedbackManager.j(activity);
return;
} else if (StringUtils.x(personData.getPublicProfileUrl())) {
facebookHelper.T(activity, personData.getPublicProfileUrl(), null);
return;
} else {
facebookHelper.W(activity, personData.getId(), null, null);
return;
}
}
if (type == 4) {
TwitterHelper.Y(activity, personData.getId(), null);
return;
}
if (type == 9) {
PinterestHelper.I(activity, personData.getUserName(), null);
} else if (type == 6) {
FoursquareHelper.I(activity, personData.getId(), null);
} else {
if (type != 7) {
return;
}
InstagramHelper.get().J(activity, personData.getId(), null, false);
}
}
@Override
public int getLayoutResourceId() {
return R.layout.activity_mutual_friends;
}
@Override
public void onCreate(Bundle bundle) {
Intent intent = getIntent();
if (intent == null || intent.getExtras() == null) {
finish();
return;
}
ArrayList parcelableArrayList = intent.getExtras().getParcelableArrayList("PERSON_SELECT_LIST_KEY");
if (parcelableArrayList == null || parcelableArrayList.isEmpty()) {
finish();
return;
}
setKeyguardDismissAndScreenWindowFlags();
super.onCreate(bundle);
getSupportActionBar().r(true);
setTitle(Activities.getString(R.string.mutual_contacts_title));
RecyclerView findViewById = findViewById(R.id.mutualList);
findViewById.setLayoutManager(new LinearLayoutManager(this));
findViewById.setAdapter(new MutualPersonAdapter(parcelableArrayList, new AnonymousClass1()));
}
}