File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/src/main/java/com/github/mobile/accounts Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 19
19
import static android .accounts .AccountManager .KEY_ACCOUNT_TYPE ;
20
20
import static android .accounts .AccountManager .KEY_AUTHTOKEN ;
21
21
import static android .accounts .AccountManager .KEY_BOOLEAN_RESULT ;
22
+ import static android .content .Intent .ACTION_VIEW ;
23
+ import static android .content .Intent .CATEGORY_BROWSABLE ;
22
24
import static android .view .KeyEvent .ACTION_DOWN ;
23
25
import static android .view .KeyEvent .KEYCODE_ENTER ;
24
26
import static android .view .inputmethod .EditorInfo .IME_ACTION_DONE ;
@@ -226,6 +228,14 @@ private void updateEnablement() {
226
228
loginItem .setEnabled (loginEnabled ());
227
229
}
228
230
231
+ @ Override
232
+ public void startActivity (Intent intent ) {
233
+ if (intent != null && ACTION_VIEW .equals (intent .getAction ()))
234
+ intent .addCategory (CATEGORY_BROWSABLE );
235
+
236
+ super .startActivity (intent );
237
+ }
238
+
229
239
/**
230
240
* Authenticate login & password
231
241
*/
You can’t perform that action at this time.
0 commit comments