Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Remove GET_ACCOUNTS permission usage. Fixes #578
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Oct 29, 2015
1 parent fba05c2 commit 0a5a344
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.linkbubble;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.AlertDialog;
import android.app.Application;
import android.content.ActivityNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.linkbubble.ui;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
Expand Down
13 changes: 0 additions & 13 deletions Application/LinkBubble/src/main/java/com/linkbubble/util/Util.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.linkbubble.util;

import android.accounts.Account;
import android.app.Activity;
import android.app.Dialog;
import android.content.ComponentName;
Expand Down Expand Up @@ -373,18 +372,6 @@ static public void replaceViewAtPosition(View viewToReplace, View replaceWith) {
parent.addView(replaceWith, index);
}

static public String getDefaultEmail(Account[] accounts) {
Pattern emailPattern = Patterns.EMAIL_ADDRESS;
for (Account account : accounts) {
if (emailPattern.matcher(account.name).matches()) {
if (account.name != null) {
return account.name;
}
}
}
return null;
}

private static int sIconWidth = -1;
private static int sIconHeight = -1;
private static int sIconTextureWidth = -1;
Expand Down
1 change: 1 addition & 0 deletions Application/LinkBubble/src/main/res/xml/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<release version="1.6.6">
<change>BUG FIX: Fix an occasional crash when opening Link Bubble.</change>
<change>REMOVED: Unused GET_ACCOUNTS permission.</change>
</release>

<release version="1.6.5">
Expand Down

0 comments on commit 0a5a344

Please sign in to comment.