|
|
|
@ -23,7 +23,6 @@ import android.accounts.Account;
|
|
|
|
|
import android.accounts.AccountManager;
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.content.SharedPreferences;
|
|
|
|
|
import android.content.pm.PackageInfo;
|
|
|
|
|
import android.content.pm.PackageManager;
|
|
|
|
|
import android.content.res.TypedArray;
|
|
|
|
@ -32,7 +31,6 @@ import android.preference.PreferenceManager;
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
import android.view.HapticFeedbackConstants;
|
|
|
|
|
import android.view.Menu;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
@ -84,12 +82,6 @@ public class Helper {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static void hapticFeedback(View view) {
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(view.getContext());
|
|
|
|
|
if (prefs.getBoolean("haptic", true))
|
|
|
|
|
view.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void view(Context context, Intent intent) {
|
|
|
|
|
Uri uri = intent.getData();
|
|
|
|
|
if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme()))
|
|
|
|
|