Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
release 4.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
k0shk0sh committed Mar 25, 2018
1 parent 16d096f commit a2ac3d7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
applicationId "com.fastaccess.github"
minSdkVersion 21
targetSdkVersion 27
versionCode 465
versionName "4.6.5"
versionCode 466
versionName "4.6.6"
buildConfigString "GITHUB_CLIENT_ID", (buildProperties.secrets['github_client_id'] | buildProperties.notThere['github_client_id']).string
buildConfigString "GITHUB_SECRET", (buildProperties.secrets['github_secret'] | buildProperties.notThere['github_secret']).string
buildConfigString "IMGUR_CLIENT_ID", (buildProperties.secrets['imgur_client_id'] | buildProperties.notThere['imgur_client_id']).string
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/java/com/fastaccess/ui/base/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public abstract class BaseActivity<V extends BaseMvp.FAView, P extends BasePrese
}

@Override public void onBackPressed() {
if (drawer != null && (drawer.isDrawerOpen(GravityCompat.START) || drawer.isDrawerOpen(GravityCompat.END))) {
if (drawer != null && drawer.isDrawerOpen(GravityCompat.START)) {
closeDrawer();
} else {
boolean clickTwiceToExit = !PrefGetter.isTwiceBackButtonDisabled();
Expand Down Expand Up @@ -400,10 +400,7 @@ public void closeDrawer() {
if (drawer != null) {
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else if (drawer.isDrawerOpen(GravityCompat.END)) {
drawer.closeDrawer(GravityCompat.END);
}
drawer.closeDrawers();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public class MainActivity extends BaseActivity<MainMvp.View, MainPresenter> impl

@Override public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.search_menu, menu);
menu.findItem(R.id.secondMenu).setVisible(true);
return super.onCreateOptionsMenu(menu);
}

Expand All @@ -106,9 +105,6 @@ public class MainActivity extends BaseActivity<MainMvp.View, MainPresenter> impl
ViewHelper.tintDrawable(item.setIcon(R.drawable.ic_notifications_none).getIcon(), ViewHelper.getIconColor(this));
startActivity(new Intent(this, NotificationActivity.class));
return true;
} else if (item.getItemId() == R.id.secondMenu) {
if (drawer != null) drawer.openDrawer(GravityCompat.END);
return true;
}
return super.onOptionsItemSelected(item);
}
Expand Down
7 changes: 0 additions & 7 deletions app/src/main/res/menu/search_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,4 @@
android:icon="@drawable/ic_search"
android:title="@string/search"
app:showAsAction="always"/>

<item
android:id="@+id/secondMenu"
android:visible="false"
android:icon="@drawable/ic_profile"
android:title="@string/profile"
app:showAsAction="always"/>
</menu>

0 comments on commit a2ac3d7

Please sign in to comment.