package com.ustadmobile.port.android.view;

import java.lang.System;

/**
 * Base activity to handle interacting with UstadMobileSystemImpl
 *
 *
 * Created by mike on 10/15/15.
 */
@kotlin.Metadata(mv = {1, 7, 1}, k = 1, d1 = {"\u0000\u009c\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\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\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0004\b&\u0018\u0000 R2\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u00042\u00020\u0005:\u0001RB\u0005\u00a2\u0006\u0002\u0010\u0006J\u0010\u00105\u001a\u0002062\u0006\u00107\u001a\u000208H\u0014J\b\u00109\u001a\u000206H\u0002J\b\u0010:\u001a\u000206H\u0016J\"\u0010;\u001a\u0002062\u0006\u0010<\u001a\u00020=2\u0006\u0010>\u001a\u00020=2\b\u0010?\u001a\u0004\u0018\u00010@H\u0014J\u0010\u0010A\u001a\u0002062\u0006\u0010B\u001a\u00020CH\u0014J\u0012\u0010D\u001a\u0002062\b\u0010E\u001a\u0004\u0018\u00010FH\u0015J\b\u0010G\u001a\u000206H\u0016J\b\u0010H\u001a\u000206H\u0014J\b\u0010I\u001a\u000206H\u0014J\u0010\u0010J\u001a\u0002062\u0006\u0010K\u001a\u00020=H\u0004J&\u0010L\u001a\u0002062\u0006\u0010M\u001a\u00020%2\f\u0010N\u001a\b\u0012\u0004\u0012\u0002060O2\u0006\u0010P\u001a\u00020=H\u0016J\b\u0010Q\u001a\u000206H\u0002R\u001a\u0010\u0007\u001a\u00020\bX\u0086.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\t\u0010\n\"\u0004\b\u000b\u0010\fR\u001b\u0010\r\u001a\u00020\u000e8BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0013\u001a\u00020\u0014X\u0084.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0016\"\u0004\b\u0017\u0010\u0018R\u001b\u0010\u0019\u001a\u00020\u001a8VX\u0096\u0084\u0002\u00a2\u0006\f\n\u0004\b\u001d\u0010\u0012\u001a\u0004\b\u001b\u0010\u001cR\u001a\u0010\u001e\u001a\u00020\u001fX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R\u0010\u0010$\u001a\u0004\u0018\u00010%X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010&\u001a\u0004\u0018\u00010\'X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010(\u001a\u0004\u0018\u00010)X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001b\u0010*\u001a\u00020+8BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b.\u0010\u0012\u001a\u0004\b,\u0010-R\u001a\u0010/\u001a\u000200X\u0084.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b1\u00102\"\u0004\b3\u00104\u00a8\u0006S"}, d2 = {"Lcom/ustadmobile/port/android/view/UstadBaseActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "Lcom/ustadmobile/core/view/UstadView;", "Lcom/squareup/seismic/ShakeDetector$Listener;", "Lcom/ustadmobile/port/android/view/BleNetworkManagerProvider;", "Lorg/kodein/di/DIAware;", "()V", "appUpdateManager", "Lcom/google/android/play/core/appupdate/AppUpdateManager;", "getAppUpdateManager", "()Lcom/google/android/play/core/appupdate/AppUpdateManager;", "setAppUpdateManager", "(Lcom/google/android/play/core/appupdate/AppUpdateManager;)V", "appUpdatedListener", "Lcom/google/android/play/core/install/InstallStateUpdatedListener;", "getAppUpdatedListener", "()Lcom/google/android/play/core/install/InstallStateUpdatedListener;", "appUpdatedListener$delegate", "Lkotlin/Lazy;", "baseProgressBar", "Landroid/widget/ProgressBar;", "getBaseProgressBar", "()Landroid/widget/ProgressBar;", "setBaseProgressBar", "(Landroid/widget/ProgressBar;)V", "di", "Lorg/kodein/di/DI;", "getDi", "()Lorg/kodein/di/DI;", "di$delegate", "feedbackDialogVisible", "", "getFeedbackDialogVisible$app_android_release", "()Z", "setFeedbackDialogVisible$app_android_release", "(Z)V", "localeOnCreate", "", "sensorManager", "Landroid/hardware/SensorManager;", "shakeDetector", "Lcom/squareup/seismic/ShakeDetector;", "systemImpl", "Lcom/ustadmobile/core/impl/UstadMobileSystemImpl;", "getSystemImpl", "()Lcom/ustadmobile/core/impl/UstadMobileSystemImpl;", "systemImpl$delegate", "umToolbar", "Landroidx/appcompat/widget/Toolbar;", "getUmToolbar", "()Landroidx/appcompat/widget/Toolbar;", "setUmToolbar", "(Landroidx/appcompat/widget/Toolbar;)V", "attachBaseContext", "", "newBase", "Landroid/content/Context;", "checkForAppUpdate", "hearShake", "onActivityResult", "requestCode", "", "resultCode", "data", "Landroid/content/Intent;", "onBleNetworkServiceBound", "networkManagerBle", "Lcom/ustadmobile/sharedse/network/NetworkManagerBle;", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "onDestroy", "onPause", "onResume", "setUMToolbar", "toolbarID", "showSnackBar", "message", "action", "Lkotlin/Function0;", "actionMessageId", "updateCompleted", "Companion", "app-android_release"})
public abstract class UstadBaseActivity extends androidx.appcompat.app.AppCompatActivity implements com.ustadmobile.core.view.UstadView, com.squareup.seismic.ShakeDetector.Listener, com.ustadmobile.port.android.view.BleNetworkManagerProvider, org.kodein.di.DIAware {
    @org.jetbrains.annotations.NotNull()
    private final kotlin.Lazy di$delegate = null;
    
    /**
     * Get the toolbar that's used for the support action bar
     *
     * @return
     */
    protected androidx.appcompat.widget.Toolbar umToolbar;
    protected android.widget.ProgressBar baseProgressBar;
    private java.lang.String localeOnCreate;
    public com.google.android.play.core.appupdate.AppUpdateManager appUpdateManager;
    private final kotlin.Lazy systemImpl$delegate = null;
    private final kotlin.Lazy appUpdatedListener$delegate = null;
    private com.squareup.seismic.ShakeDetector shakeDetector;
    private android.hardware.SensorManager sensorManager;
    private boolean feedbackDialogVisible = false;
    @org.jetbrains.annotations.NotNull()
    public static final com.ustadmobile.port.android.view.UstadBaseActivity.Companion Companion = null;
    private static final int APP_UPDATE_REQUEST_CODE = 113;
    
    public UstadBaseActivity() {
        super();
    }
    
    @org.jetbrains.annotations.NotNull()
    @java.lang.Override()
    public org.kodein.di.DI getDi() {
        return null;
    }
    
    @org.jetbrains.annotations.NotNull()
    protected final androidx.appcompat.widget.Toolbar getUmToolbar() {
        return null;
    }
    
    protected final void setUmToolbar(@org.jetbrains.annotations.NotNull()
    androidx.appcompat.widget.Toolbar p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    protected final android.widget.ProgressBar getBaseProgressBar() {
        return null;
    }
    
    protected final void setBaseProgressBar(@org.jetbrains.annotations.NotNull()
    android.widget.ProgressBar p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final com.google.android.play.core.appupdate.AppUpdateManager getAppUpdateManager() {
        return null;
    }
    
    public final void setAppUpdateManager(@org.jetbrains.annotations.NotNull()
    com.google.android.play.core.appupdate.AppUpdateManager p0) {
    }
    
    private final com.ustadmobile.core.impl.UstadMobileSystemImpl getSystemImpl() {
        return null;
    }
    
    private final com.google.android.play.core.install.InstallStateUpdatedListener getAppUpdatedListener() {
        return null;
    }
    
    private final void updateCompleted() {
    }
    
    /**
     * TODO: This should not be done on every onResume of every activity. It could go to HomeActivity
     */
    private final void checkForAppUpdate() {
    }
    
    public final boolean getFeedbackDialogVisible$app_android_release() {
        return false;
    }
    
    public final void setFeedbackDialogVisible$app_android_release(boolean p0) {
    }
    
    @android.annotation.SuppressLint(value = {"ObsoleteSdkInt"})
    @java.lang.Override()
    protected void onCreate(@org.jetbrains.annotations.Nullable()
    android.os.Bundle savedInstanceState) {
    }
    
    @java.lang.Override()
    public void hearShake() {
    }
    
    /**
     * All activities descending from UstadBaseActivity bind to the network manager. This method
     * can be overriden when presenters need to use a reference to the networkmanager.
     *
     * @param networkManagerBle
     */
    protected void onBleNetworkServiceBound(@org.jetbrains.annotations.NotNull()
    com.ustadmobile.sharedse.network.NetworkManagerBle networkManagerBle) {
    }
    
    @java.lang.Override()
    protected void onResume() {
    }
    
    @java.lang.Override()
    protected void onPause() {
    }
    
    protected final void setUMToolbar(int toolbarID) {
    }
    
    @java.lang.Override()
    public void onDestroy() {
    }
    
    @java.lang.Override()
    public void showSnackBar(@org.jetbrains.annotations.NotNull()
    java.lang.String message, @org.jetbrains.annotations.NotNull()
    kotlin.jvm.functions.Function0<kotlin.Unit> action, int actionMessageId) {
    }
    
    @java.lang.Override()
    protected void onActivityResult(int requestCode, int resultCode, @org.jetbrains.annotations.Nullable()
    android.content.Intent data) {
    }
    
    @java.lang.Override()
    protected void attachBaseContext(@org.jetbrains.annotations.NotNull()
    android.content.Context newBase) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public org.kodein.di.DIContext<?> getDiContext() {
        return null;
    }
    
    @org.jetbrains.annotations.Nullable()
    public org.kodein.di.DITrigger getDiTrigger() {
        return null;
    }
    
    @kotlin.Metadata(mv = {1, 7, 1}, k = 1, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0005"}, d2 = {"Lcom/ustadmobile/port/android/view/UstadBaseActivity$Companion;", "", "()V", "APP_UPDATE_REQUEST_CODE", "", "app-android_release"})
    public static final class Companion {
        
        private Companion() {
            super();
        }
    }
}