Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final boolean isLand = mCreationOrientation == Configuration.ORIENTATION_LANDSCAPE;
- if ((target == 0 && (mIsScreenLarge || !isLand)) || (target == 2 && !mIsScreenLarge && isLand)) {
- mCallback.goToUnlockScreen();
- } else {
- target -= 1 + mTargetOffset;
- if (target < mStoredTargets.length && mStoredTargets[target] != null) {
- try {
- Intent tIntent = Intent.parseUri(mStoredTargets[target], 0);
- tIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- mContext.startActivity(tIntent);
- mCallback.goToUnlockScreen();
- return;
- } catch (URISyntaxException e) {
- } catch (ActivityNotFoundException e) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement