Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
f3e61f9c
Commit
f3e61f9c
authored
8 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Finished the first implementation of hybrid backlog storage
parent
6b8f35fa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/de/kuschku/quasseldroid_ng/ui/LoginActivity.java
+7
-0
7 additions, 0 deletions
...ain/java/de/kuschku/quasseldroid_ng/ui/LoginActivity.java
build.gradle
+1
-1
1 addition, 1 deletion
build.gradle
with
8 additions
and
1 deletion
app/src/main/java/de/kuschku/quasseldroid_ng/ui/LoginActivity.java
+
7
−
0
View file @
f3e61f9c
...
...
@@ -26,6 +26,9 @@ import android.os.Bundle;
import
android.support.annotation.Nullable
;
import
android.support.v7.app.AppCompatActivity
;
import
com.raizlabs.android.dbflow.config.FlowManager
;
import
de.kuschku.libquassel.localtypes.orm.ConnectedDatabase
;
import
de.kuschku.quasseldroid_ng.ui.chat.MainActivity
;
import
de.kuschku.quasseldroid_ng.ui.chat.util.ServiceHelper
;
import
de.kuschku.quasseldroid_ng.ui.setup.AccountSelectActivity
;
...
...
@@ -55,6 +58,10 @@ public class LoginActivity extends AppCompatActivity {
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
if
(
resultCode
==
RESULT_OK
)
{
// If we select a different core than we used last time, clear the database
if
(!
context
.
settings
().
preferenceLastAccount
.
get
().
equals
(
data
.
getBundleExtra
(
"extra"
).
getString
(
"account"
)))
deleteDatabase
(
ConnectedDatabase
.
NAME
);
context
.
settings
().
preferenceLastAccount
.
set
(
data
.
getBundleExtra
(
"extra"
).
getString
(
"account"
));
checkReady
();
firstStart
=
true
;
...
...
This diff is collapsed.
Click to expand it.
build.gradle
+
1
−
1
View file @
f3e61f9c
...
...
@@ -24,7 +24,7 @@ buildscript {
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:2.
0.0-alpha7
'
classpath
'com.android.tools.build:gradle:2.
1.2
'
classpath
'me.tatarka:gradle-retrolambda:3.2.4'
classpath
'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment