Skip to content

Commit

Permalink
hide menu in android <5
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Aug 10, 2023
1 parent e9adc96 commit d867175
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/org/thoughtcrime/securesms/ConversationListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
Expand Down Expand Up @@ -275,7 +276,11 @@ public boolean onPrepareOptionsMenu(Menu menu) {
menu.findItem(R.id.menu_global_map).setVisible(false);
}

MenuCompat.setGroupDividerEnabled(menu, true);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
MenuCompat.setGroupDividerEnabled(menu, true);
} else{
menu.setGroupVisible(R.id.extra_services, false);
}
}

super.onPrepareOptionsMenu(menu);
Expand Down

0 comments on commit d867175

Please sign in to comment.