Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask_android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
cyberta
bitmask_android
Commits
3efba09e
Commit
3efba09e
authored
6 years ago
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
remove dead code in start activity
parent
b910710a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/se/leap/bitmaskclient/StartActivity.java
+1
-11
1 addition, 11 deletions
app/src/main/java/se/leap/bitmaskclient/StartActivity.java
with
1 addition
and
11 deletions
app/src/main/java/se/leap/bitmaskclient/StartActivity.java
+
1
−
11
View file @
3efba09e
...
@@ -54,12 +54,11 @@ public class StartActivity extends Activity{
...
@@ -54,12 +54,11 @@ public class StartActivity extends Activity{
public
static
final
String
TAG
=
StartActivity
.
class
.
getSimpleName
();
public
static
final
String
TAG
=
StartActivity
.
class
.
getSimpleName
();
@Retention
(
RetentionPolicy
.
SOURCE
)
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIRST
,
NORMAL
,
UPGRADE
,
DOWNGRADE
})
@IntDef
({
FIRST
,
NORMAL
,
UPGRADE
})
private
@interface
StartupMode
{}
private
@interface
StartupMode
{}
private
static
final
int
FIRST
=
0
;
private
static
final
int
FIRST
=
0
;
private
static
final
int
NORMAL
=
1
;
private
static
final
int
NORMAL
=
1
;
private
static
final
int
UPGRADE
=
2
;
private
static
final
int
UPGRADE
=
2
;
private
static
final
int
DOWNGRADE
=
3
;
private
int
versionCode
;
private
int
versionCode
;
private
int
previousVersionCode
;
private
int
previousVersionCode
;
...
@@ -87,10 +86,6 @@ public class StartActivity extends Activity{
...
@@ -87,10 +86,6 @@ public class StartActivity extends Activity{
executeUpgrade
();
executeUpgrade
();
// TODO show donation dialog
// TODO show donation dialog
break
;
break
;
case
DOWNGRADE:
// TODO think how and why this should happen and what todo
break
;
}
}
// initialize app necessities
// initialize app necessities
...
@@ -128,11 +123,6 @@ public class StartActivity extends Activity{
...
@@ -128,11 +123,6 @@ public class StartActivity extends Activity{
Log
.
d
(
TAG
,
"UPGRADE"
);
Log
.
d
(
TAG
,
"UPGRADE"
);
return
UPGRADE
;
return
UPGRADE
;
}
}
// version has decreased -> downgrade
if
(
versionCode
<
previousVersionCode
)
{
Log
.
d
(
TAG
,
"DOWNGRADE"
);
return
DOWNGRADE
;
}
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
Log
.
d
(
TAG
,
"Splash screen didn't find any "
+
getPackageName
()
+
" package"
);
Log
.
d
(
TAG
,
"Splash screen didn't find any "
+
getPackageName
()
+
" package"
);
...
...
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