b.java
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.instabug.library.c;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout.LayoutParams;
import android.widget.ImageButton;
import com.instabug.library.IBGColorTheme;
import com.instabug.library.Instabug;
import com.instabug.library.R.drawable;
import com.instabug.library.R.id;
import com.instabug.library.R.layout;
import com.instabug.library.model.d;
public class b
{
private static b e;
private a a;
private d b;
private View c;
private boolean d = false;
private b(a parama)
{
this.a = parama;
}
public static b a(@Nullable a parama)
{
if (e == null) {
e = new b(parama);
}
return e;
}
public b a(@NonNull d paramd)
{
this.b = paramd;
return this;
}
public void a()
{
if ((this.d) && (this.c != null) && (this.c.getParent() != null) && ((this.c.getParent() instanceof ViewGroup)))
{
((ViewGroup)this.c.getParent()).removeView(this.c);
this.d = false;
}
}
public void a(Activity paramActivity, d paramd)
{
a(paramd);
if (this.d) {
a();
}
this.c = ((LayoutInflater)paramActivity.getSystemService("layout_inflater")).inflate(R.layout.instabug_floating_bar_take_screenshot, null);
paramd = (ImageButton)this.c.findViewById(R.id.captureImageButton);
paramd.setOnClickListener(new View.OnClickListener()
{
public final void onClick(View paramAnonymousView)
{
b.this.a();
b.b(b.this).a(b.a(b.this));
}
});
if (Instabug.getColorTheme().equals(IBGColorTheme.IBGColorThemeDark)) {
paramd.setImageResource(R.drawable.instabug_ic_capture_screenshot_dark);
}
for (;;)
{
paramd = new FrameLayout.LayoutParams(-1, -2, 80);
paramActivity.getWindow().addContentView(this.c, paramd);
this.d = true;
return;
paramd.setImageResource(R.drawable.instabug_ic_capture_screenshot_light);
}
}
public static abstract interface a
{
public abstract void a(d paramd);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/c/b.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/