Advertisement
techmik

Untitled

Jun 26th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. final boolean isLand = mCreationOrientation == Configuration.ORIENTATION_LANDSCAPE;
  2. if ((target == 0 && (mIsScreenLarge || !isLand)) || (target == 2 && !mIsScreenLarge && isLand)) {
  3. mCallback.goToUnlockScreen();
  4. } else {
  5. target -= 1 + mTargetOffset;
  6. if (target < mStoredTargets.length && mStoredTargets[target] != null) {
  7. try {
  8. Intent tIntent = Intent.parseUri(mStoredTargets[target], 0);
  9. tIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  10. mContext.startActivity(tIntent);
  11. mCallback.goToUnlockScreen();
  12. return;
  13. } catch (URISyntaxException e) {
  14. } catch (ActivityNotFoundException e) {
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement