Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake Mobile
Commits
120c9b88
Verified
Commit
120c9b88
authored
Jul 24, 2020
by
HashikD
Browse files
Made settings button invisible on open settings
parent
cddbc2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/torproject/snowflake/MainActivity.java
View file @
120c9b88
...
...
@@ -76,9 +76,11 @@ public class MainActivity extends AppCompatActivity implements MainFragmentCallb
if
(
fragment
instanceof
MainFragment
)
{
currentFragment
=
FragmentConstants
.
MAIN_FRAGMENT
;
getSupportActionBar
().
setDisplayHomeAsUpEnabled
(
false
);
settingsButton
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
currentFragment
=
FragmentConstants
.
APP_SETTINGS_FRAGMENT
;
getSupportActionBar
().
setDisplayHomeAsUpEnabled
(
true
);
settingsButton
.
setVisibility
(
View
.
GONE
);
}
Log
.
d
(
TAG
,
"startFragment: "
+
currentFragment
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment