LocaleChangedReceiver.java 1.07 KB
package com.bitstrips.imoji.receivers;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.bitstrips.imoji.InjectorApplication;
import com.bitstrips.imoji.firebase.AppIndexingParams.Builder;
import com.bitstrips.imoji.manager.AppIndexingManager;
import javax.inject.Inject;

public class LocaleChangedReceiver
  extends BroadcastReceiver
{
  @Inject
  AppIndexingManager a;
  
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    Log.i("AppIndexing", "Updating Firebase index due to locale change..");
    ((InjectorApplication)paramContext.getApplicationContext()).inject(this);
    this.a.updateIndex(new AppIndexingParams.Builder().setForceRequestAvatarInfo(true).setForceRequestStickerPacks(true).setForceFlushFirebase(false).setIndexingReason("locale_changed").build());
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/receivers/LocaleChangedReceiver.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */