-
Notifications
You must be signed in to change notification settings - Fork 244
Switch/Add servers without logging in/out #51
base: master
Are you sure you want to change the base?
Conversation
Automated message from Dropbox CLA bot @kunall17, it looks like you've already signed the Dropbox CLA. Thanks! |
Hey bro, I'm having problems connecting zulip/zulip-android/master branch to my localhost with the login hack for [email protected]. Does your code connect to localhost without any problems? I'll fork it if I don't hear a response within the next few hours and try it myself - I just thought I would ask the most knowledgeable person first. |
@ryansnowboarder problems as in? your server URL is not taken or you cannot sign in? And sorry, I am not the most knowledgeable person here. |
My problem is that my local hosted Zulip server does not respond to HTTP I ran out of time and didn't fork your repo, but I'll do that soon to see On Tue, Apr 19, 2016 at 9:33 PM, Kunal Gupta [email protected]
|
@kunall17 if it's not too much trouble, do you mind rebasing this against master? |
@niftynei rebased and updated this branch! :) |
@kunall17 what's the status of this PR? |
username = you.getEmail(); | ||
} catch (Exception e) { | ||
//SQL Exception can occur if name is not updated! | ||
ZLog.logException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what cases would username be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be, as setEmail is being called always before this is called!
Hello kunal. I wasn't able to try this out because of the merge conflicts, but I left some notes on the code. Thanks! |
@kunall17 I got a crash when I successfully logged into a second realm.
|
If you used the DevAuthBackEnd in the second login attempt (when adding realm) then this should fix the error! |
it seems to work ok now, is there some context for why this occurs? otherwise it looks really good and i'd love to get it merged in 👍 cc @kunall17 :) |
If you had tried devAuthBackEnd then this error seems valid before the fix, otherwise it shouldn't occur! |
realmNameET = (EditText) findViewById(R.id.realmName); | ||
if (getIntent().getBooleanExtra("FROM_ADDREALM", false)) { | ||
startedFromAddRealm = true; | ||
((TextView) findViewById(R.id.textView1)).setText(R.string.add_realm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kunall17 this is possibly a rebasing error, but i can't get my version of this to compile because it can't find the textView1
view.
This GlobalSettings will store all the info about the saved realms.
Changes the database helper and save default settings for the server.
Saves current server position, changes the databaseHelper and get's the saved data for this server
Abort current connections, handlers and establish new ones.
Reset, Abort current connections and estabilish new connections and settings.
Updated the branch! |
@kunall17 this is super old, but do you have any interest in reviving this PR? |
@niftynei yeah sure! |
@kunall17 awesome! is there a way for the widget to only be registered for messages from a single realm? for example if you log in to more than realm, you pick which realm to see messages for in the configuration activity. just an idea. |
@kunall17 what's the status of this PR? Is it still something we intend to do? |
@timabbott yeah definitely, this is one great feature, but after migration to retrofit this PR would have to undergo a lot of changes, I'll see to update this one! |
@kunall17 This is really a great feature. Tell me if you need any kind of help in this. I would be happy to help. :) |
@saketkumar95 sure if you want to revive this PR, you can use the commits in this PR! |
@kunall17 Can I test this PR? |
Testing? |
Heads up @kunall17, we just merged some commits (latest: 471dca2) that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Developed #47 and also fixes #1
Screenshots:
This saves the newly added servers in a new sharedPreference, hence saving their api_key which is further used for the authentication!