DeepLinkActivity.java 1.51 KB
package com.bitstrips.imoji.ui.activities;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.bitstrips.imoji.InjectorApplication;
import com.bitstrips.imoji.monouser.oauth2.OAuth2Manager;
import com.bitstrips.imoji.ui.BitmojiBaseActivity;
import com.bitstrips.imoji.ui.LoginActivity;
import javax.inject.Inject;

public class DeepLinkActivity
  extends BitmojiBaseActivity
{
  @Inject
  OAuth2Manager n;
  
  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    ((InjectorApplication)getApplicationContext()).inject(this);
    try
    {
      paramBundle = getIntent();
      Object localObject = paramBundle.getData();
      if ((localObject != null) && ("bitmoji-sdk".equals(((Uri)localObject).getScheme())) && ("login".equals(((Uri)localObject).getHost())))
      {
        this.n.startOAuthGrant(this);
        finish();
        return;
      }
      localObject = new Intent(paramBundle.getAction(), (Uri)localObject, this, LoginActivity.class);
      if (paramBundle.getExtras() != null) {
        ((Intent)localObject).putExtras(paramBundle.getExtras());
      }
      ((Intent)localObject).addFlags(335544320);
      startActivity((Intent)localObject);
      finish();
      return;
    }
    catch (RuntimeException paramBundle)
    {
      finish();
    }
  }
}


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