正在查看: CallApp v2.226 应用的 ConferenceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 ConferenceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.callapp.contacts.activity.contact.details;
import a1.d0;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.ForegroundColorSpan;
import android.util.Pair;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.callapp.contacts.CallAppApplication;
import com.callapp.contacts.R;
import com.callapp.contacts.activity.base.BaseActivity;
import com.callapp.contacts.activity.contact.cards.ConferenceCard;
import com.callapp.contacts.activity.contact.cards.framework.CardArrayRecyclerViewAdapterWithPriority;
import com.callapp.contacts.activity.contact.details.BaseContactDetailsActivity;
import com.callapp.contacts.activity.contact.details.BaseContactDetailsParallaxImpl;
import com.callapp.contacts.activity.contact.details.PresentersContainer;
import com.callapp.contacts.activity.contact.details.presenter.callbarpresenter.AudioRouteSelectorDialogListener;
import com.callapp.contacts.activity.contact.details.presenter.callbarpresenter.CallBarPresenter;
import com.callapp.contacts.activity.contact.header.ThemeState;
import com.callapp.contacts.activity.contact.list.keypad.KeypadFragment;
import com.callapp.contacts.activity.contact.list.keypad.KeypadView;
import com.callapp.contacts.activity.contact.list.keypad.TwelveKeyDialer;
import com.callapp.contacts.activity.interfaces.DialpadToggleListener;
import com.callapp.contacts.activity.interfaces.FinishActivityListener;
import com.callapp.contacts.activity.interfaces.KeypadVisibilityEvents;
import com.callapp.contacts.activity.interfaces.KeypadVisibilityListener;
import com.callapp.contacts.activity.interfaces.RecorderStateListener;
import com.callapp.contacts.activity.interfaces.ShowKeypadListener;
import com.callapp.contacts.activity.interfaces.ThemeChangedListener;
import com.callapp.contacts.event.EventBusManager;
import com.callapp.contacts.inCallService.TelecomAdapter;
import com.callapp.contacts.manager.ContactLoaderManager;
import com.callapp.contacts.manager.FeedbackManager;
import com.callapp.contacts.manager.NotificationManager;
import com.callapp.contacts.manager.ProximityManager;
import com.callapp.contacts.manager.analytics.AnalyticsManager;
import com.callapp.contacts.manager.asset.managers.CoverAssetManager;
import com.callapp.contacts.manager.keyguard.KeyguardActivityStateManager;
import com.callapp.contacts.manager.permission.PermissionManager;
import com.callapp.contacts.manager.phone.CallDetailsListener;
import com.callapp.contacts.manager.phone.CallStateListener;
import com.callapp.contacts.manager.phone.PhoneManager;
import com.callapp.contacts.manager.phone.PhoneStateManager;
import com.callapp.contacts.manager.popup.ActivityResult;
import com.callapp.contacts.manager.preferences.Prefs;
import com.callapp.contacts.manager.task.Task;
import com.callapp.contacts.model.Constants;
import com.callapp.contacts.model.call.CallData;
import com.callapp.contacts.model.call.CallState;
import com.callapp.contacts.model.contact.ContactData;
import com.callapp.contacts.model.contact.ContactDataChangeListener;
import com.callapp.contacts.model.contact.ContactField;
import com.callapp.contacts.model.contact.social.ContactFieldEnumSets;
import com.callapp.contacts.model.objectbox.ExtractedInfo;
import com.callapp.contacts.recorder.CallRecorderManager;
import com.callapp.contacts.recorder.interfaces.CallRecorderEvent;
import com.callapp.contacts.recorder.loader.CallRecorderLoader;
import com.callapp.contacts.recorder.recordertest.RecorderTestManager;
import com.callapp.contacts.util.Activities;
import com.callapp.contacts.util.ArrayUtils;
import com.callapp.contacts.util.CLog;
import com.callapp.contacts.util.ColorUtils;
import com.callapp.contacts.util.DefaultInterfaceImplUtils$ClickListener;
import com.callapp.contacts.util.ThemeUtils;
import com.callapp.contacts.util.ViewUtils;
import com.callapp.contacts.util.callappRomHelper.romHelper.base.detector.RomDetector;
import com.callapp.contacts.util.glide.GlideUtils;
import com.callapp.contacts.widget.AudioRouteSelectorDialogFragment;
import com.callapp.contacts.widget.ProfilePictureView;
import com.callapp.framework.util.CollectionUtils;
import com.callapp.framework.util.StringUtils;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.snackbar.BaseTransientBottomBar;
import com.google.android.material.snackbar.Snackbar;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import k2.t;
public class ConferenceActivity extends BaseContactDetailsActivity implements ContactDataChangeListener, CallRecorderEvent, CallStateListener, CallDetailsListener, DialpadToggleListener, KeypadVisibilityListener, ThemeChangedListener, AudioRouteSelectorDialogFragment.AudioRouteSelectorListener {
public static final String EXTRA_SUPPRESS_ACTIVITY_CREATION_ANIMATION = "shouldSuppressAnimation";
public static final int ONE_SEC_IN_MILLIS = 1000;
public static final int SNACK_BAR_DURATION = 4000;
private AudioRouteSelectorDialogFragment audioRouteSelectorDialogFragment;
private CallBarPresenter callBarPresenter;
private TextView conferenceCallTitle;
private boolean keypadShown;
private KeypadVisibilityEvents keypadVisibilityEvents;
private TextView numOfParticipants;
private ViewGroup rootView;
private final String classSimpleName = getClass().getSimpleName();
private final List<ContactData> contactDataList = new ArrayList();
private final ProximityManager.AudioModeChanged audioModeChangedListener = new ProximityManager.AudioModeChanged() {
@Override
public final void a() {
CallAppApplication.get().runOnBackgroundThread(new Runnable() {
@Override
public final void run() {
ConferenceActivity.this.requestUpdateUI();
}
});
}
};
private void addCards() {
new Task() {
@Override
public final void doTask() {
ExtractedInfo extractedInfo;
long j;
List<CallData> allConferenceCalls = PhoneStateManager.get().getAllConferenceCalls();
int size = allConferenceCalls.size();
ConferenceActivity conferenceActivity = ConferenceActivity.this;
conferenceActivity.setNumOfParticipantsString(size);
if (CollectionUtils.h(allConferenceCalls)) {
for (CallData callData : allConferenceCalls) {
ContactData contactDataByCallData = PhoneStateManager.get().getContactDataByCallData(callData);
if (contactDataByCallData != null) {
extractedInfo = contactDataByCallData.getPhoneOrigin();
j = contactDataByCallData.getDeviceId();
} else {
extractedInfo = null;
j = 0;
}
Pair<ContactData, Set<ContactField>> registerForContactDetailsStack = ContactLoaderManager.get().registerForContactDetailsStack(callData.getNumber(), extractedInfo, j, ConferenceActivity.this, ContactFieldEnumSets.CONFERENCE_CALL_FIELDS);
conferenceActivity.contact = (ContactData) registerForContactDetailsStack.first;
conferenceActivity.contactDataList.add(conferenceActivity.contact);
new ConferenceCard(conferenceActivity.presenterContainer, callData, conferenceActivity.contact);
if (((Set) registerForContactDetailsStack.second).size() > 0) {
conferenceActivity.onContactChanged(conferenceActivity.contact, (Set) registerForContactDetailsStack.second);
}
}
}
}
}.execute();
}
private CardArrayRecyclerViewAdapterWithPriority getRecyclerViewAdapter() {
return getRecyclerView().getAdapter();
}
private void initViews() {
runOnUiThread(new i(this, 3));
}
public void lambda$initViews$0() {
KeypadFragment keypadFragment;
setStatusBarColor(this.presenterContainer.getColor(R.color.in_call_status_bar_color));
ViewUtils.t(this.rootView, ColorUtils.a(this.presenterContainer.getColor(R.color.incall_gradient_end_color), this.presenterContainer.getColor(R.color.incall_gradient_center_color), this.presenterContainer.getColor(R.color.incall_gradient_start_color)));
this.conferenceCallTitle.setTextColor(this.presenterContainer.getColor(R.color.text_color));
getRecyclerView().setBackgroundColor(0);
this.appBar.setBackgroundColor(0);
List<CallData> allConferenceCalls = PhoneStateManager.get().getAllConferenceCalls();
if (CollectionUtils.h(allConferenceCalls)) {
setNumOfParticipantsString(allConferenceCalls.size());
}
if (!this.keypadShown || (keypadFragment = (KeypadFragment) getSupportFragmentManager().G("KEYPAD_FRAGMENT_TAG")) == null) {
return;
}
keypadFragment.A();
}
public void lambda$onCreate$1(View view) {
onBackPressed();
}
public void lambda$requestBluetoothPermission$3() {
this.audioRouteSelectorDialogFragment = AudioRouteSelectorDialogFragment.A(getSupportFragmentManager(), false);
}
public void lambda$requestBluetoothPermission$4() {
this.audioRouteSelectorDialogFragment = AudioRouteSelectorDialogFragment.A(getSupportFragmentManager(), true);
}
public void lambda$setParallaxAndStatusBarColors$2() {
ViewUtils.t(this.coverBackground, null);
ViewUtils.D(this.coverImageView, false);
ViewUtils.D(this.coverBackground, true);
BaseContactDetailsParallaxImpl parallax = getParallax();
parallax.setSpammer(false);
parallax.setIncognito(false);
parallax.setHasCover(false);
parallax.b();
setStatusBarColor(this.presenterContainer.getColor(R.color.incall_conference_status_bar));
Window window = getWindow();
boolean z = ((ThemeState) Prefs.w3.get()) != ThemeState.DARK;
BaseActivity.setStatusBarTextColor(window, z);
BaseActivity.updateNavigationBarColorToThemeColor(window, z);
}
private void removeContactDetailsListeners() {
Iterator<ContactData> it = this.contactDataList.iterator();
while (it.hasNext()) {
unRegisterForContactDataChanges(it.next());
}
this.contactDataList.clear();
}
public void requestUpdateUI() {
CallBarPresenter callBarPresenter = (CallBarPresenter) this.presenterManager.f(CallBarPresenter.class);
this.callBarPresenter = callBarPresenter;
if (callBarPresenter != null && !PhoneManager.get().isDefaultPhoneApp()) {
this.callBarPresenter.B();
}
CallAppApplication.get().postRunnableDelayed(new Runnable() {
@Override
public final void run() {
if (PhoneStateManager.get().isAnyCallActive()) {
NotificationManager.get().d0(ConferenceActivity.this.callData);
}
}
}, 1000L);
}
public void setNumOfParticipantsString(int i) {
int color = this.presenterContainer.getColor(R.color.conference_num_of_participants);
String string = getString(R.string.x_participants_conference_call, String.valueOf(i));
final SpannableString spannableString = new SpannableString(string);
spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(2131165623), true), 0, 1, 0);
spannableString.setSpan(new ForegroundColorSpan(color), 0, string.length(), 33);
runOnUiThread(new Runnable() {
@Override
public final void run() {
ConferenceActivity.this.numOfParticipants.setText(spannableString);
}
});
}
public void setScreenLocked(boolean z) {
CardArrayRecyclerViewAdapterWithPriority recyclerViewAdapter = getRecyclerViewAdapter();
if (recyclerViewAdapter != null) {
recyclerViewAdapter.setIsScreenLocked(z);
}
}
public void showLockedNotificationOnScreen() {
View findViewById;
ViewGroup viewGroup = this.rootView;
if (viewGroup == null || (findViewById = viewGroup.findViewById(R.id.snackbarContainer)) == null) {
return;
}
final Snackbar g = Snackbar.g(findViewById, Activities.getString(R.string.press_to_unlock));
Snackbar.SnackbarLayout snackbarLayout = ((BaseTransientBottomBar) g).i;
snackbarLayout.findViewById(2131365223).setVisibility(4);
View inflate = getLayoutInflater().inflate(R.layout.custom_snack_bar, (ViewGroup) null);
TextView textView = (TextView) inflate.findViewById(R.id.unlock_text);
textView.setText(Activities.getString(R.string.press_to_unlock));
textView.setTextColor(this.presenterContainer.getColor(2131101228));
TextView textView2 = (TextView) inflate.findViewById(R.id.unlock_action);
textView2.setText(Activities.getString(R.string.unlock));
textView2.setTextColor(this.presenterContainer.getColor(R.color.colorPrimary));
textView2.setOnClickListener(new DefaultInterfaceImplUtils$ClickListener() {
@Override
public final void a(View view) {
ConferenceActivity.this.setScreenLocked(false);
g.b(3);
}
});
snackbarLayout.addView(inflate, 0);
g.h();
CallAppApplication.get().postRunnableDelayed(new Runnable(this) {
@Override
public final void run() {
boolean c;
Snackbar snackbar = g;
snackbar.getClass();
ji.h b = ji.h.b();
BaseTransientBottomBar.e eVar = ((BaseTransientBottomBar) snackbar).t;
synchronized (b.a) {
c = b.c(eVar);
}
if (c) {
snackbar.b(3);
}
}
}, 4000L);
}
public static void startConferenceActivity(final Context context, boolean z) {
StringUtils.I(ConferenceActivity.class);
CLog.a();
final Intent addFlags = new Intent(context, (Class<?>) ConferenceActivity.class).addFlags(537198592);
addFlags.putExtra(BaseContactDetailsActivity.EXTRA_SHOW_KEYPAD, z);
if (RomDetector.isMIUI()) {
new Task() {
@Override
public final void doTask() {
Activities.E(context, addFlags);
}
}.schedule(1000);
} else {
Activities.E(context, addFlags);
}
}
private void unRegisterCall(CallData callData) {
if (callData.getState().isDisconnected()) {
unRegisterForContactDataChanges(PhoneStateManager.get().getContactDataByCallData(callData));
}
}
private void unRegisterForContactDataChanges(ContactData contactData) {
ContactLoaderManager.get().unRegisterForContactDetailsStack(contactData, this);
}
private void updateScreenLockState(final boolean z) {
CallAppApplication.get().runOnMainThread(new Runnable() {
@Override
public final void run() {
ConferenceActivity.this.setScreenLocked(z);
}
});
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
KeypadFragment keypadFragment;
KeypadView keypadView;
TwelveKeyDialer twelveKeyDialer;
boolean dispatchTouchEvent = super.dispatchTouchEvent(motionEvent);
if (motionEvent.getAction() == 1 && this.keypadShown && (keypadFragment = (KeypadFragment) getSupportFragmentManager().G("KEYPAD_FRAGMENT_TAG")) != null && (keypadView = keypadFragment.a) != null && (twelveKeyDialer = keypadView.a) != null) {
twelveKeyDialer.i();
}
return dispatchTouchEvent;
}
@Override
public int getLayoutResourceId() {
return R.layout.activity_conference;
}
@Override
public BaseContactDetailsParallaxImpl getParallaxImpl(BaseContactDetailsActivity.FlingListener flingListener) {
PresentersContainerImpl presentersContainerImpl = this.presenterContainer;
View findViewById = findViewById(R.id.conferenceRootView);
BaseContactDetailsParallaxImpl.PositionChangedListener positionChangedListener = getPositionChangedListener();
this.assetManager.b.getClass();
return new BaseContactDetailsParallaxImpl(presentersContainerImpl, findViewById, positionChangedListener, CoverAssetManager.c(), getLifecycle(), this.detailsActivityMode);
}
@Override
public BaseContactDetailsParallaxImpl.PositionChangedListener getPositionChangedListener() {
return null;
}
@Override
public PresentersContainer.MODE getPresenterContainerMode() {
return PresentersContainer.MODE.CONFERENCE_SCREEN;
}
@Override
public int getThemeResId() {
Intent intent = getIntent();
return (intent == null || !intent.getBooleanExtra(EXTRA_SUPPRESS_ACTIVITY_CREATION_ANIMATION, false)) ? super.getThemeResId() : ThemeUtils.getNoTitleThemeNoTransitions();
}
@Override
public boolean isSnapOnUpRulesOk() {
return false;
}
public void onAttachFragment(@NonNull Fragment fragment) {
if (fragment.equals(this.audioRouteSelectorDialogFragment)) {
this.audioRouteSelectorDialogFragment.setAudioRouteSelectorListener(this);
}
}
@Override
public void onAudioRouteSelected(int i) {
TelecomAdapter.getInstance().setAudioRoute(i);
}
@Override
public void onAudioRouteSelectorDismiss() {
}
public void onBackPressed() {
CallBarPresenter callBarPresenter = this.callBarPresenter;
if (callBarPresenter == null || !callBarPresenter.o()) {
finish();
}
}
@Override
public void onButtonBarIconClicked(View view) {
}
@Override
public void onCallDetailsChanged(int[] iArr) {
boolean[] a = ArrayUtils.a(iArr);
boolean z = true;
this.eventBus.b(CallDetailsListener.B8, iArr, true);
if (!Arrays.equals(a, Constants.CALL_ON_HOLD) && !Arrays.equals(a, Constants.CALL_ADDED) && !Arrays.equals(a, Constants.CALL_BEFORE_MERGE)) {
z = false;
}
setHoldContactData(z);
}
@Override
public void onCallStateChanged(CallData callData) {
if (!PhoneStateManager.get().shouldConferenceScreenAppear()) {
StringUtils.I(ConferenceActivity.class);
CLog.a();
CallAppApplication.get().postRunnableDelayed(new Runnable() {
@Override
public final void run() {
ConferenceActivity.this.finish();
}
}, 500L);
return;
}
if (callData.getState() == CallState.DISCONNECTED) {
List<CallData> allConferenceCalls = PhoneStateManager.get().getAllConferenceCalls();
if (CollectionUtils.h(allConferenceCalls)) {
setNumOfParticipantsString(allConferenceCalls.size());
}
}
this.eventBus.b(CallStateListener.C8, callData, true);
updateScreenLockState(callData.getState() != null && callData.getState().isTalking());
unRegisterCall(callData);
}
@Override
public void onContactChanged(ContactData contactData, Set<ContactField> set) {
this.presenterContainer.onContactChanged(contactData, set);
if (!(CollectionUtils.b(set, ContactField.photoUrl) && contactData.hasAnyPhotoUrl() && !this.presenterContainer.isIncognito(contactData)) && CollectionUtils.b(set, ContactField.googleMap)) {
contactData.getGoogleMapsLatLng();
}
}
@Override
public void onCreate(Bundle bundle) {
getWindow().setSoftInputMode(48);
super.onCreate(bundle);
StringUtils.I(ConferenceActivity.class);
CLog.a();
this.detailsActivityMode = BaseContactDetailsActivity.DetailsActivityMode.IN_CALL;
setKeyguardDismissAndScreenWindowFlags();
setStatusBarColor(this.presenterContainer.getColor(R.color.in_call_status_bar_color));
AnalyticsManager.get().t(Constants.CONFERENCE_SCREEN, null);
this.presenterContainer.getEventBus().a(DialpadToggleListener.U7, this);
KeyguardActivityStateManager.get().e(this.classSimpleName);
showActionBar(false);
ViewGroup viewGroup = (ViewGroup) findViewById(R.id.conferenceRootView);
this.rootView = viewGroup;
if (viewGroup != null) {
viewGroup.setBackgroundColor(this.presenterContainer.getColor(R.color.background));
findViewById(R.id.profile_pic_action_icon_container).setVisibility(8);
findViewById(R.id.backButton).setOnClickListener(new b(this, 2));
this.rootView.findViewById(R.id.contactDetails_theme_change_section_container).setVisibility(8);
this.rootView.findViewById(R.id.contact_details_top_strip).setVisibility(8);
}
this.appBar.getLayoutParams().a.setDragCallback(new AppBarLayout.Behavior.a(this) {
public final boolean a() {
return false;
}
});
this.conferenceCallTitle = (TextView) findViewById(R.id.nameText);
this.numOfParticipants = (TextView) findViewById(R.id.conferenceNumOfParticipants);
this.conferenceCallTitle.setText(Activities.getString(R.string.conference_call));
ProfilePictureView profilePictureView = (ProfilePictureView) findViewById(R.id.profilePhoto);
GlideUtils.GlideRequestBuilder glideRequestBuilder = new GlideUtils.GlideRequestBuilder(R.drawable.conference_call_icon);
glideRequestBuilder.r = true;
int c = t.c(2131165412);
glideRequestBuilder.m = -1;
glideRequestBuilder.l = c;
profilePictureView.l(glideRequestBuilder);
this.cardsAdapter = new CardArrayRecyclerViewAdapterWithPriority(this, new ArrayList(), new CardArrayRecyclerViewAdapterWithPriority.CardEventsListener() {
@Override
public final void a() {
ConferenceActivity.this.showLockedNotificationOnScreen();
}
@Override
public final void b() {
ConferenceActivity.this.getParallax().d(BaseContactDetailsParallaxImpl.Position.SEMI_OPEN, false);
}
});
FeedbackManager.get().e(R.drawable.ic_conference, this);
getRecyclerView().setAdapter(this.cardsAdapter);
this.presenterManager.g(this.presenterContainer);
PhoneStateManager.get().addListenerIfNotPreCall(this, false);
PhoneStateManager.get().addDetailsListener(this);
addCards();
this.presenterManager.b(this.presenterContainer);
onNewIntent(getIntent());
CallRecorderManager.get().l(this, !RecorderTestManager.get().getIsInRecorderTestMode());
CallBarPresenter callBarPresenter = (CallBarPresenter) this.presenterManager.f(CallBarPresenter.class);
this.callBarPresenter = callBarPresenter;
if (callBarPresenter != null) {
callBarPresenter.setAudioRouteSelectorDialogListener(new AudioRouteSelectorDialogListener() {
@Override
public final void a() {
ConferenceActivity conferenceActivity = ConferenceActivity.this;
conferenceActivity.audioRouteSelectorDialogFragment = AudioRouteSelectorDialogFragment.A(conferenceActivity.getSupportFragmentManager(), false);
}
});
}
}
@Override
public void onDestroy() {
StringUtils.I(ConferenceActivity.class);
CLog.a();
this.eventBus.b(ThemeChangedListener.f618w8, null, false);
PhoneStateManager.get().removeDetailsListener(this);
PhoneStateManager.get().removeListener(this);
this.presenterContainer.getEventBus().f(DialpadToggleListener.U7, this);
KeyguardActivityStateManager.get().g(this.classSimpleName);
CallRecorderManager.get().s(this, !RecorderTestManager.get().getIsInRecorderTestMode());
removeContactDetailsListeners();
super.onDestroy();
}
@Override
public void onError(Bundle bundle) {
}
@Override
public void onNewIntent(Intent intent) {
StringUtils.I(ConferenceActivity.class);
CLog.a();
super.onNewIntent(intent);
if (intent.getBooleanExtra(BaseContactDetailsActivity.EXTRA_SHOW_KEYPAD, false)) {
this.presenterContainer.getEventBus().b(ShowKeypadListener.f615s8, Boolean.TRUE, false);
}
}
@Override
public void onPause() {
this.eventBus.b(ThemeChangedListener.f618w8, null, false);
ProximityManager.get().setAudioModeChangedListener(null);
super.onPause();
AudioRouteSelectorDialogFragment audioRouteSelectorDialogFragment = this.audioRouteSelectorDialogFragment;
if (audioRouteSelectorDialogFragment != null) {
audioRouteSelectorDialogFragment.dismiss();
}
PhoneStateManager.get().setConferencesActivityVisible(false);
KeyguardActivityStateManager.get().b(this.classSimpleName);
}
@Override
public void onPreRecord(Bundle bundle) {
this.eventBus.b(RecorderStateListener.a, bundle, false);
}
@Override
public void onRecordFileReady(Bundle bundle) {
}
@Override
public void onRecorderStarted(Bundle bundle) {
this.eventBus.b(RecorderStateListener.a, bundle, false);
}
@Override
public void onRecorderStopped(Bundle bundle) {
CallRecorderLoader.e(this.contact);
this.eventBus.b(RecorderStateListener.a, bundle, false);
}
@Override
public void onResume() {
super.onResume();
this.eventBus.b(ThemeChangedListener.f618w8, null, false);
KeyguardActivityStateManager.get().c(this.classSimpleName);
PhoneStateManager.get().setConferencesActivityVisible(true);
requestUpdateUI();
ProximityManager.get().setAudioModeChangedListener(this.audioModeChangedListener);
EventBusManager.a.b(FinishActivityListener.W7, Boolean.TRUE, false);
initViews();
}
public Object onRetainCustomNonConfigurationInstance() {
return Boolean.TRUE;
}
@Override
public void onThemeChanged() {
initViews();
this.presenterContainer.getEventBus().b(ThemeChangedListener.f618w8, null, false);
}
@Override
public void onTopBarIconClicked(View view) {
}
@Override
public void onUserLeaveHint() {
super.onUserLeaveHint();
this.eventBus.b(ThemeChangedListener.f618w8, null, false);
}
@Override
public void onWindowFocusChanged(boolean z) {
super.onWindowFocusChanged(z);
KeyguardActivityStateManager.get().d(this.classSimpleName, z);
}
@Override
public void registerFilteredEvents(KeypadVisibilityEvents keypadVisibilityEvents) {
this.keypadVisibilityEvents = keypadVisibilityEvents;
}
@Override
public void requestBluetoothPermission(boolean z) {
if (isDestroyed() || isFinishing() || Build.VERSION.SDK_INT < 31) {
return;
}
if (z) {
Activities.B(this, new ActivityResult() {
@Override
public final void h(Activity activity, int i, int i2, Intent intent) {
ConferenceActivity conferenceActivity = ConferenceActivity.this;
conferenceActivity.audioRouteSelectorDialogFragment = AudioRouteSelectorDialogFragment.A(conferenceActivity.getSupportFragmentManager(), true);
}
});
} else {
PermissionManager.get().f(this, new i(this, 0), new i(this, 1), PermissionManager.PermissionGroup.BLUETOOTH);
}
}
@Override
public void setParallaxAndStatusBarColors(BaseContactDetailsActivity.DetailsActivityMode detailsActivityMode, boolean z) {
CallAppApplication.get().runOnMainThread(new i(this, 2));
}
@Override
public void toggleDialpad(boolean z, boolean z2, int i, int i2) {
this.keypadShown = z;
FragmentManager supportFragmentManager = getSupportFragmentManager();
final androidx.fragment.app.a f = d0.f(supportFragmentManager, supportFragmentManager);
final KeypadFragment keypadFragment = (KeypadFragment) getSupportFragmentManager().G("KEYPAD_FRAGMENT_TAG");
if (keypadFragment == null) {
keypadFragment = KeypadFragment.z(i2, i, 1, true);
}
if (z) {
this.keypadMainContainer.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
@Override
public final boolean onPreDraw() {
ConferenceActivity conferenceActivity = ConferenceActivity.this;
conferenceActivity.keypadMainContainer.getViewTreeObserver().removeOnPreDrawListener(this);
conferenceActivity.callBarPresenter.setRecordingBarContainerMarginBottom(conferenceActivity.keypadMainContainer.getHeight() - ((int) conferenceActivity.getResources().getDimension(2131165444)));
return true;
}
});
f.i(R.id.keypadMainContainer, keypadFragment, "KEYPAD_FRAGMENT_TAG");
f.d();
getSupportFragmentManager().D();
keypadFragment.setKeypadShadowTopVisibility(8);
return;
}
if (this.keypadVisibilityEvents != null) {
this.callBarPresenter.setRecordingBarContainerMarginBottom(0);
((KeypadFragment) this.keypadVisibilityEvents).x(true, new AnimatorListenerAdapter() {
@Override
public final void onAnimationEnd(Animator animator) {
f.h(keypadFragment).e();
ConferenceActivity.this.getSupportFragmentManager().D();
}
});
}
}
@Override
public void unRegisterFilteredEvents(KeypadVisibilityEvents keypadVisibilityEvents) {
if (this.keypadVisibilityEvents == keypadVisibilityEvents) {
this.keypadVisibilityEvents = null;
}
}
}