package net.letime.lecjoa;

import java.lang.System;

@kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 .2\u00020\u00012\u00020\u0002:\u0001.B\u0005\u00a2\u0006\u0002\u0010\u0003J\b\u0010\u0019\u001a\u00020\u001aH\u0002J\b\u0010\u001b\u001a\u00020\u001cH\u0002J\u0012\u0010\u001d\u001a\u00020\u001c2\b\u0010\u001e\u001a\u0004\u0018\u00010\u001fH\u0014J\u0010\u0010 \u001a\u00020\u001c2\u0006\u0010!\u001a\u00020\u000bH\u0002J\u0010\u0010\"\u001a\u00020\u001a2\u0006\u0010#\u001a\u00020$H\u0016J\u0010\u0010%\u001a\u00020\u001c2\u0006\u0010&\u001a\u00020\u001fH\u0014J\b\u0010\'\u001a\u00020\u001cH\u0014J\b\u0010(\u001a\u00020\u001cH\u0014J\u0010\u0010)\u001a\u00020\u001c2\u0006\u0010*\u001a\u00020+H\u0002J\u0010\u0010,\u001a\u00020\u001c2\u0006\u0010-\u001a\u00020\u001aH\u0002R\u001e\u0010\u0004\u001a\u00020\u00058\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u0010\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\f\u001a\u0004\u0018\u00010\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001e\u0010\u000e\u001a\u00020\u000f8\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R\u0014\u0010\u0014\u001a\u00020\u000b8BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u000e\u0010\u0017\u001a\u00020\u0018X\u0082.\u00a2\u0006\u0002\n\u0000\u00a8\u0006/"}, d2 = {"Lnet/letime/lecjoa/LoginActivity;", "Landroid/support/v7/app/AppCompatActivity;", "Lnet/letime/lecjoa/di/Injectable;", "()V", "accountManager", "Lnet/letime/lecjoa/db/AccountManager;", "getAccountManager", "()Lnet/letime/lecjoa/db/AccountManager;", "setAccountManager", "(Lnet/letime/lecjoa/db/AccountManager;)V", "clientId", "", "clientSecret", "domain", "mastodonApi", "Lnet/letime/lecjoa/network/MastodonApi;", "getMastodonApi", "()Lnet/letime/lecjoa/network/MastodonApi;", "setMastodonApi", "(Lnet/letime/lecjoa/network/MastodonApi;)V", "oauthRedirectUri", "getOauthRedirectUri", "()Ljava/lang/String;", "preferences", "Landroid/content/SharedPreferences;", "isAdditionalLogin", "", "onButtonClick", "", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "onLoginSuccess", "accessToken", "onOptionsItemSelected", "item", "Landroid/view/MenuItem;", "onSaveInstanceState", "outState", "onStart", "onStop", "redirectUserToAuthorizeAndLogin", "editText", "Landroid/widget/EditText;", "setLoading", "loadingState", "Companion", "app_debug"})
public final class LoginActivity extends android.support.v7.app.AppCompatActivity implements net.letime.lecjoa.di.Injectable {
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.network.MastodonApi mastodonApi;
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.db.AccountManager accountManager;
    private android.content.SharedPreferences preferences;
    private java.lang.String domain;
    private java.lang.String clientId;
    private java.lang.String clientSecret;
    private static final java.lang.String TAG = "LoginActivity";
    private static final java.lang.String OAUTH_SCOPES = "read write follow";
    private static final java.lang.String LOGIN_MODE = "LOGIN_MODE";
    private static final java.lang.String DOMAIN = "domain";
    private static final java.lang.String CLIENT_ID = "clientId";
    private static final java.lang.String CLIENT_SECRET = "clientSecret";
    public static final net.letime.lecjoa.LoginActivity.Companion Companion = null;
    private java.util.HashMap _$_findViewCache;
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.network.MastodonApi getMastodonApi() {
        return null;
    }
    
    public final void setMastodonApi(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.network.MastodonApi p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.db.AccountManager getAccountManager() {
        return null;
    }
    
    public final void setAccountManager(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.db.AccountManager p0) {
    }
    
    private final java.lang.String getOauthRedirectUri() {
        return null;
    }
    
    @java.lang.Override()
    protected void onCreate(@org.jetbrains.annotations.Nullable()
    android.os.Bundle savedInstanceState) {
    }
    
    @java.lang.Override()
    public boolean onOptionsItemSelected(@org.jetbrains.annotations.NotNull()
    android.view.MenuItem item) {
        return false;
    }
    
    @java.lang.Override()
    protected void onSaveInstanceState(@org.jetbrains.annotations.NotNull()
    android.os.Bundle outState) {
    }
    
    /**
     * * Obtain the oauth client credentials for this app. This is only necessary the first time the
     *     * app is run on a given server instance. So, after the first authentication, they are
     *     * saved in SharedPreferences and every subsequent run they are simply fetched from there.
     */
    private final void onButtonClick() {
    }
    
    private final void redirectUserToAuthorizeAndLogin(android.widget.EditText editText) {
    }
    
    @java.lang.Override()
    protected void onStop() {
    }
    
    @java.lang.Override()
    protected void onStart() {
    }
    
    private final void setLoading(boolean loadingState) {
    }
    
    private final boolean isAdditionalLogin() {
        return false;
    }
    
    private final void onLoginSuccess(java.lang.String accessToken) {
    }
    
    public LoginActivity() {
        super();
    }
    
    @org.jetbrains.annotations.NotNull()
    public static final android.content.Intent getIntent(@org.jetbrains.annotations.NotNull()
    android.content.Context context, boolean mode) {
        return null;
    }
    
    @kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\n\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u0004H\u0002J\u0018\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011H\u0007J\u0018\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u000e\u001a\u00020\u000fH\u0002J\u001c\u0010\u0015\u001a\u00020\u00042\u0012\u0010\u0016\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0017H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0018"}, d2 = {"Lnet/letime/lecjoa/LoginActivity$Companion;", "", "()V", "CLIENT_ID", "", "CLIENT_SECRET", "DOMAIN", "LOGIN_MODE", "OAUTH_SCOPES", "TAG", "canonicalizeDomain", "domain", "getIntent", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "mode", "", "openInCustomTab", "uri", "Landroid/net/Uri;", "toQueryString", "parameters", "", "app_debug"})
    public static final class Companion {
        
        @org.jetbrains.annotations.NotNull()
        public final android.content.Intent getIntent(@org.jetbrains.annotations.NotNull()
        android.content.Context context, boolean mode) {
            return null;
        }
        
        /**
         * Make sure the user-entered text is just a fully-qualified domain name.  
         */
        private final java.lang.String canonicalizeDomain(java.lang.String domain) {
            return null;
        }
        
        /**
         * * Chain together the key-value pairs into a query string, for either appending to a URL or
         *         * as the content of an HTTP request.
         */
        private final java.lang.String toQueryString(java.util.Map<java.lang.String, java.lang.String> parameters) {
            return null;
        }
        
        private final boolean openInCustomTab(android.net.Uri uri, android.content.Context context) {
            return false;
        }
        
        private Companion() {
            super();
        }
    }
}