AppIndexingLegacyScheduler.java
1.47 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
package com.bitstrips.imoji.firebase;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.SystemClock;
import android.util.Log;
import com.bitstrips.imoji.injection.ForApplication;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.inject.Singleton;
@Singleton
public class AppIndexingLegacyScheduler
{
private static final long a = TimeUnit.HOURS.toMillis(12L);
private final Context b;
private final AlarmManager c;
private boolean d = false;
@Inject
public AppIndexingLegacyScheduler(@ForApplication Context paramContext, AlarmManager paramAlarmManager)
{
this.b = paramContext;
this.c = paramAlarmManager;
}
public void start()
{
if (Build.VERSION.SDK_INT >= 21) {}
while (this.d) {
return;
}
Intent localIntent = new Intent(this.b, AppIndexingLegacyWrapperService.class);
PendingIntent localPendingIntent = PendingIntent.getService(this.b, 0, localIntent, 0);
Log.i("AppIndexing", "Creating app indexing legacy scheduling..");
this.c.setRepeating(3, SystemClock.elapsedRealtime() + a, a, localPendingIntent);
this.b.startService(localIntent);
this.d = true;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/firebase/AppIndexingLegacyScheduler.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/