BaseAppIndexingUpdateReceiver.java
1.6 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
package com.bitstrips.imoji.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import com.bitstrips.imoji.ImojiApplication;
import com.bitstrips.imoji.firebase.AppIndexingParams;
import com.bitstrips.imoji.manager.AppIndexingManager;
import com.bitstrips.imoji.security.SignatureUtils;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Provider;
public abstract class BaseAppIndexingUpdateReceiver
extends BroadcastReceiver
{
@Inject
AppIndexingManager a;
@Inject
@Named("avatarId")
Provider<String> b;
@NonNull
protected abstract AppIndexingParams getAppIndexingParams();
@NonNull
protected abstract String getTrustedFingerprint();
@NonNull
protected abstract String getTrustedPackageName();
protected boolean onBeforeUpdateIndex(Context paramContext)
{
return true;
}
public final void onReceive(Context paramContext, Intent paramIntent)
{
((ImojiApplication)paramContext.getApplicationContext()).inject(this);
if (TextUtils.isEmpty((CharSequence)this.b.get())) {}
while ((!SignatureUtils.isInstalledSignatureTrusted(paramContext, getTrustedPackageName(), getTrustedFingerprint())) || (!onBeforeUpdateIndex(paramContext))) {
return;
}
this.a.updateIndex(getAppIndexingParams());
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/receivers/BaseAppIndexingUpdateReceiver.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/