package com.xlx.speech.m0; import android.app.Activity; import com.xlx.speech.voicereadsdk.entrance.SpeechVoiceSdk; import java.util.Iterator; import java.util.Stack; public class a { public Stack<Activity> a = new Stack<>(); /* renamed from: com.xlx.speech.m0.a$a reason: collision with other inner class name */ public static class C0411a { public static final a a = new a(); } public void a() { boolean z; try { Class.forName("me.jessyan.autosize.AutoSize"); z = true; } catch (ClassNotFoundException unused) { z = false; } if (z) { try { Class<?> cls = Class.forName("me.jessyan.autosize.AutoSizeConfig"); cls.getMethod("restart", new Class[0]).invoke(cls.getMethod("getInstance", new Class[0]).invoke(null, new Object[0]), new Object[0]); } catch (Exception unused2) { } } Iterator<Activity> it = this.a.iterator(); while (it.hasNext()) { it.next().finish(); } this.a.clear(); if (SpeechVoiceSdk.getAdManger().getVoiceAdListener() != null) { SpeechVoiceSdk.getAdManger().getVoiceAdListener().onAdClose(); } } }