Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Julian Dehm
briar
Commits
f71596c2
Commit
f71596c2
authored
9 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Align progress wheel with button.
parent
2687e795
Loading
Loading
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-android/res/layout/activity_password.xml
+4
-4
4 additions, 4 deletions
briar-android/res/layout/activity_password.xml
briar-android/src/org/briarproject/android/PasswordActivity.java
+4
-7
4 additions, 7 deletions
...ndroid/src/org/briarproject/android/PasswordActivity.java
with
8 additions
and
11 deletions
briar-android/res/layout/activity_password.xml
+
4
−
4
View file @
f71596c2
...
...
@@ -43,12 +43,12 @@
style=
"?android:attr/progressBarStyleInverse"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/edit_password"
android:layout_marginTop=
"@dimen/margin_xlarge"
android:visibility=
"gone"
/>
android:layout_alignTop=
"@id/btn_sign_in"
android:layout_alignBottom=
"@id/btn_sign_in"
android:gravity=
"center"
android:visibility=
"invisible"
/>
<TextView
android:id=
"@+id/forgot_password"
style=
"@style/BriarTextBody"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
This diff is collapsed.
Click to expand it.
briar-android/src/org/briarproject/android/PasswordActivity.java
+
4
−
7
View file @
f71596c2
...
...
@@ -24,7 +24,7 @@ import java.util.concurrent.Executor;
import
javax.inject.Inject
;
import
static
android
.
view
.
View
.
GON
E
;
import
static
android
.
view
.
View
.
INVISIBL
E
;
import
static
android
.
view
.
View
.
VISIBLE
;
import
static
android
.
view
.
inputmethod
.
EditorInfo
.
IME_ACTION_DONE
;
...
...
@@ -33,7 +33,7 @@ public class PasswordActivity extends BaseActivity {
@Inject
@CryptoExecutor
private
Executor
cryptoExecutor
;
private
Button
signInButton
;
private
ProgressBar
progress
;
private
TextView
title
,
forgotPassword
;
private
TextView
title
;
private
EditText
password
;
private
byte
[]
encrypted
;
...
...
@@ -57,7 +57,6 @@ public class PasswordActivity extends BaseActivity {
signInButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_sign_in
);
progress
=
(
ProgressBar
)
findViewById
(
R
.
id
.
progress_wheel
);
title
=
(
TextView
)
findViewById
(
R
.
id
.
title_password
);
forgotPassword
=
(
TextView
)
findViewById
(
R
.
id
.
forgot_password
);
password
=
(
EditText
)
findViewById
(
R
.
id
.
edit_password
);
password
.
setOnEditorActionListener
(
new
OnEditorActionListener
()
{
@Override
...
...
@@ -100,8 +99,7 @@ public class PasswordActivity extends BaseActivity {
private
void
validatePassword
(
final
byte
[]
encrypted
,
Editable
e
)
{
hideSoftKeyboard
();
// Replace the button with a progress bar
signInButton
.
setVisibility
(
GONE
);
forgotPassword
.
setVisibility
(
GONE
);
signInButton
.
setVisibility
(
INVISIBLE
);
progress
.
setVisibility
(
VISIBLE
);
// Decrypt the database key in a background thread
final
String
password
=
e
.
toString
();
...
...
@@ -123,8 +121,7 @@ public class PasswordActivity extends BaseActivity {
public
void
run
()
{
title
.
setText
(
R
.
string
.
try_again
);
signInButton
.
setVisibility
(
VISIBLE
);
forgotPassword
.
setVisibility
(
VISIBLE
);
progress
.
setVisibility
(
GONE
);
progress
.
setVisibility
(
INVISIBLE
);
password
.
setText
(
""
);
}
});
...
...
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