feat: Show Photo Open In External App
This commit is contained in:
parent
a560d51e28
commit
13dabf1ac4
@ -10950,7 +10950,11 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
|
||||
} else {
|
||||
speedItem.setVisibility(View.GONE);
|
||||
speedGap.setVisibility(View.GONE);
|
||||
if (NaConfig.INSTANCE.getShowPhotoOpenInExternalApp().Bool()) {
|
||||
menuItem.showSubItem(gallery_menu_openin);
|
||||
} else {
|
||||
menuItem.hideSubItem(gallery_menu_openin);
|
||||
}
|
||||
menuItem.checkHideMenuItem();
|
||||
final boolean pipItemVisible = pipItem.getVisibility() == View.VISIBLE;
|
||||
final boolean shouldMasksItemBeVisible = newMessageObject.hasAttachedStickers() && !DialogObject.isEncryptedDialog(newMessageObject.getDialogId());
|
||||
@ -11439,8 +11443,12 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
|
||||
} else {
|
||||
setItemVisible(pipItem, true, true);
|
||||
}
|
||||
} else {
|
||||
if (NaConfig.INSTANCE.getShowPhotoOpenInExternalApp().Bool()) {
|
||||
menuItem.showSubItem(gallery_menu_openin);
|
||||
} else {
|
||||
menuItem.hideSubItem(gallery_menu_openin);
|
||||
}
|
||||
setItemVisible(pipItem, false, true);
|
||||
}
|
||||
if (bottomLayout.getVisibility() != View.GONE) {
|
||||
|
@ -184,6 +184,7 @@ public class NekoGeneralSettingsActivity extends BaseFragment {
|
||||
private final AbstractConfigCell inappCameraRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.inappCamera));
|
||||
private final AbstractConfigCell hideProxySponsorChannelRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.hideProxySponsorChannel));
|
||||
private final AbstractConfigCell hideSponsoredMessageRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.hideSponsoredMessage));
|
||||
private final AbstractConfigCell showPhotoOpenInExternalAppRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getShowPhotoOpenInExternalApp()));
|
||||
private final AbstractConfigCell autoPauseVideoRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.autoPauseVideo, LocaleController.getString("AutoPauseVideoAbout")));
|
||||
private final AbstractConfigCell disableNumberRoundingRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableNumberRounding, "4.8K -> 4777"));
|
||||
private final AbstractConfigCell nameOrderRow = cellGroup.appendCell(new ConfigCellSelectBox(null, NekoConfig.nameOrder, new String[]{
|
||||
|
@ -186,7 +186,7 @@ object NaConfig {
|
||||
val showPremiumStarInChat = addConfig(
|
||||
"ShowPremiumStarInChat",
|
||||
ConfigItem.configTypeBool,
|
||||
true
|
||||
false
|
||||
)
|
||||
val showPremiumAvatarAnimation = addConfig(
|
||||
"ShowPremiumAvatarAnimation",
|
||||
@ -243,6 +243,11 @@ object NaConfig {
|
||||
ConfigItem.configTypeBool,
|
||||
false
|
||||
)
|
||||
val showPhotoOpenInExternalApp = addConfig(
|
||||
"ShowPhotoOpenInExternalApp",
|
||||
ConfigItem.configTypeBool,
|
||||
false
|
||||
)
|
||||
|
||||
private fun addConfig(
|
||||
k: String,
|
||||
|
@ -51,4 +51,5 @@
|
||||
<string name="CustomChannelLabel">自定义频道默认别名</string>
|
||||
<string name="AlwaysShowDownloadIcon">一直显示下载管理器</string>
|
||||
<string name="UseExperimentalFileLoader">下载速度加成</string>
|
||||
<string name="ShowPhotoOpenInExternalApp">查看图片可以使用其他应用打开</string>
|
||||
</resources>
|
||||
|
@ -52,4 +52,5 @@
|
||||
<string name="CustomChannelLabel">Custom default channel label</string>
|
||||
<string name="AlwaysShowDownloadIcon">Always Show Download Icon</string>
|
||||
<string name="UseExperimentalFileLoader">Use Experimental FileLoader</string>
|
||||
<string name="ShowPhotoOpenInExternalApp">Show Open In External App When Open Photo</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user