GboardAppIndexingUpdateReceiver.java
1.92 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
package com.bitstrips.imoji.receivers;
import android.content.Context;
import android.content.res.Resources;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import android.util.Log;
import com.bitstrips.imoji.firebase.AppIndexingParams;
import com.bitstrips.imoji.firebase.AppIndexingParams.Builder;
import com.bitstrips.imoji.identity.AvatarManager;
import com.bitstrips.imoji.util.PreferenceTimer;
import com.bitstrips.imoji.util.PreferenceUtils;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
public class GboardAppIndexingUpdateReceiver
extends BaseAppIndexingUpdateReceiver
{
@VisibleForTesting
static final long c = TimeUnit.HOURS.toMillis(2L);
@Inject
AvatarManager d;
@Inject
PreferenceUtils e;
@NonNull
protected AppIndexingParams getAppIndexingParams()
{
return new AppIndexingParams.Builder().setForceRequestStickerPacks(true).setIndexingReason("third_party_open").build();
}
@NonNull
protected String getTrustedFingerprint()
{
return "F0FD6C5B410F25CB25C3B53346C8972FAE30F8EE7411DF910480AD6B2D60DB83";
}
@NonNull
protected String getTrustedPackageName()
{
return "com.google.android.inputmethod.latin";
}
protected boolean onBeforeUpdateIndex(Context paramContext)
{
boolean bool = true;
int i = paramContext.getResources().getInteger(2131558414);
this.d.updateAvatarInfo(i, null);
paramContext = this.e.getTimer(2131231266);
this.e.putBoolean(2131231242, true);
if (paramContext.timeSinceLastUpdateInMillisec() < c)
{
Log.v("GboardAppIndexReceiver", "Aborting. Reason: The last request was received less than an hour ago.");
bool = false;
}
return bool;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/receivers/GboardAppIndexingUpdateReceiver.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/