Skip to content

Commit f03380f

Browse files
yashk2000mariobehling
authored andcommitted
Title changes to remove album cover as soon as a photo is set as the album cover. (#2774)
1 parent 558d0d4 commit f03380f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/org/fossasia/phimpme/gallery/activities/SingleMediaActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public class SingleMediaActivity extends SharedMediaActivity
148148
private boolean details = false;
149149
private ArrayList<Media> favouriteslist;
150150
public static Media mediacompress = null;
151+
private Menu menu;
151152

152153
private ArrayList<Media> uploadhistory;
153154
private ArrayList<Media> trashbinlistd;
@@ -679,6 +680,7 @@ public boolean onMenuOpened(int featureId, Menu menu) {
679680
public boolean onCreateOptionsMenu(Menu menu) {
680681
// Inflate the menu; this adds items to the action bar if it is present.
681682
getMenuInflater().inflate(R.menu.menu_view_pager, menu);
683+
this.menu = menu;
682684
return true;
683685
}
684686

@@ -1756,6 +1758,8 @@ public void folderSelected(String path) {
17561758
getApplicationContext(), getAlbum().getCurrentMedia().getPath());
17571759
SnackBarHandler.showWithBottomMargin(
17581760
parentView, getString(R.string.change_cover), bottomBar.getHeight());
1761+
MenuItem cover = menu.findItem(R.id.action_cover);
1762+
cover.setTitle("Remove cover image");
17591763
}
17601764

17611765
return true;

0 commit comments

Comments
 (0)