|
|
@ -37,6 +37,7 @@ import android.support.v4.widget.DrawerLayout; |
|
|
|
import android.support.v4.widget.DrawerLayout.DrawerListener; |
|
|
|
import android.support.v4.widget.DrawerLayout.DrawerListener; |
|
|
|
import android.support.v7.app.ActionBar; |
|
|
|
import android.support.v7.app.ActionBar; |
|
|
|
import android.support.v7.app.AlertDialog; |
|
|
|
import android.support.v7.app.AlertDialog; |
|
|
|
|
|
|
|
import android.support.v7.app.AppCompatDelegate; |
|
|
|
import android.support.v7.graphics.Palette; |
|
|
|
import android.support.v7.graphics.Palette; |
|
|
|
import android.support.v7.widget.Toolbar; |
|
|
|
import android.support.v7.widget.Toolbar; |
|
|
|
import android.text.TextUtils; |
|
|
|
import android.text.TextUtils; |
|
|
@ -125,6 +126,12 @@ import butterknife.ButterKnife; |
|
|
|
|
|
|
|
|
|
|
|
public abstract class BrowserActivity extends ThemableBrowserActivity implements BrowserView, UIController, OnClickListener { |
|
|
|
public abstract class BrowserActivity extends ThemableBrowserActivity implements BrowserView, UIController, OnClickListener { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
|
|
|
if(Build.VERSION.SDK_INT==19){ |
|
|
|
|
|
|
|
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static final String TAG = "BrowserActivity"; |
|
|
|
private static final String TAG = "BrowserActivity"; |
|
|
|
|
|
|
|
|
|
|
|
private static final String INTENT_PANIC_TRIGGER = "info.guardianproject.panic.action.TRIGGER"; |
|
|
|
private static final String INTENT_PANIC_TRIGGER = "info.guardianproject.panic.action.TRIGGER"; |
|
|
|