diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-04-23 00:03:29 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-04-23 00:03:29 +0000 |
commit | 6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85 (patch) | |
tree | c9a9403b6d2759b71f36fc95c648fb2a9cbb9fd1 /app/src/main/java/ml | |
parent | d8ddad9522596a6f8fb2e5a5d46ba74f6ed1e234 (diff) | |
download | infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar.gz infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar.bz2 infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar.lz infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar.xz infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.tar.zst infinity-for-reddit-6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85.zip |
Hide Toolbar when scrolling content up.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/ViewSubredditDetailActivity.java | 5 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewSubredditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewSubredditDetailActivity.java index e5f94cf3..70cdda82 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewSubredditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewSubredditDetailActivity.java @@ -20,7 +20,6 @@ import androidx.lifecycle.ViewModelProviders; import com.bumptech.glide.Glide; import com.bumptech.glide.RequestManager; import com.bumptech.glide.request.RequestOptions; -import com.google.android.material.appbar.CollapsingToolbarLayout; import com.google.android.material.chip.Chip; import com.google.android.material.snackbar.Snackbar; @@ -93,10 +92,6 @@ public class ViewSubredditDetailActivity extends AppCompatActivity { String title = "r/" + subredditName; subredditNameTextView.setText(title); - - CollapsingToolbarLayout collapsingToolbarLayout = findViewById(R.id.collapsing_toolbar_layout_view_subreddit_detail_activity); - collapsingToolbarLayout.setTitleEnabled(false); - Toolbar toolbar = findViewById(R.id.toolbar); toolbar.setTitle(title); setSupportActionBar(toolbar); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java index 00b9fe4b..0fb312fb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java @@ -19,7 +19,6 @@ import androidx.lifecycle.ViewModelProviders; import com.bumptech.glide.Glide; import com.bumptech.glide.RequestManager; import com.bumptech.glide.request.RequestOptions; -import com.google.android.material.appbar.CollapsingToolbarLayout; import com.google.android.material.chip.Chip; import com.google.android.material.snackbar.Snackbar; @@ -90,9 +89,6 @@ public class ViewUserDetailActivity extends AppCompatActivity { String title = "u/" + userName; userNameTextView.setText(title); - CollapsingToolbarLayout collapsingToolbarLayout = findViewById(R.id.collapsing_toolbar_layout_view_user_detail_activity); - collapsingToolbarLayout.setTitleEnabled(false); - Toolbar toolbar = findViewById(R.id.toolbar); toolbar.setTitle(title); setSupportActionBar(toolbar); |