This application claims priority to Chinese Patent Application No. 202210412488.3, filed with the China National Intellectual Property Administration on Apr. 19, 2022 and entitled “METHOD AND APPARATUS FOR HIDING PHOTO”, which is incorporated herein by reference in its entirety.
This application relates to the field of terminal technologies, and in particular, to a method and an apparatus for hiding a photo.
With the popularization and development of the internet, people have more diversified function requirements for terminal devices. For example, in order to simplify a manner a user manages a photo, a terminal device can provide a function for hiding a photo.
Generally, the terminal device may hide a single photo or a plurality of photos based on user's operation on the single photo or the plurality of photos, and save the single photo or the plurality of photos in corresponding hidden albums.
However, in the foregoing method for hiding the photo, the operation is cumbersome, which affects user experience on the function for hiding the photo.
Embodiments of this application provide a method and an apparatus for hiding a photo, and can provide, for a user, the method for hiding the photo in an album dimension, simplify steps for hiding the photo, and improve user experience on a function for hiding the photo.
According to a first aspect, an embodiment of this application provides a method for hiding a photo. The method includes: A terminal device displays a first interface, where the first interface displays an icon of a first album and an icon of a second album. The terminal device displays a second interface in response to a first operation of selecting the first album, where the second interface displays a first button for hiding the album. The terminal device displays the first interface in response to a second operation on the first button, where after the second operation, the first interface displays the icon of the second album, and skips displaying the icon of the first album. This can enable the terminal device to provide, for a user, the method for hiding the photo in an album dimension, simplify steps for hiding the photo, and improve user experience on a function for hiding the photo.
The first interface may be an ordinary album interface in this embodiment of this application, or referred to as a non-hidden interface, or the like. For example, the first interface may be an interface shown in
In a possible implementation, that the terminal device displays the first interface in response to a second operation on the first button includes: The terminal device displays a first pop-up window in response to the second operation, where the first pop-up window displays text information prompting whether to hide the album and a second button for determining to hide the first album. The terminal device displays the first interface in response to a third operation on the second button. This can enable the user to determine the operation of hiding the album based on the pop-up window displayed by the terminal device, and avoid mistaken touch.
The first pop-up window may be a pop-up window 602 in the interface shown in
In a possible implementation, the method further includes: After the first operation, the terminal device determines, in response to the first operation, whether the first album satisfies a preset condition, where when the preset condition is not satisfied, the first button is in a disabled state, or when the preset condition is satisfied, the first button is in an available state. In this way, when the user taps the album, the terminal device can identify the album to determine whether to allow further processing of the album.
The available state can be a state in which the button can be triggered. The disabled state may be a state in which the button cannot be triggered and the disabled state may be unselected described in embodiments of this application. Specifically, for the available state, refer to a state in which the hide album button 601 shown in
In a possible implementation, the first interface further displays a third button for viewing more functions in albums, and the method further includes: The terminal device displays a second pop-up window in response to a fourth operation on the third button, where the second pop-up window displays a first option for viewing a hidden album. The terminal device displays a third interface in response to a fifth operation on the first option, where the third interface displays the icon of the first album. This can enable the user to view the hidden album based on the fourth operation and the fifth operation.
The first interface may be an ordinary album interface, for example, the first interface may be an interface shown in
In a possible implementation, the third interface includes an icon of a fourth album, and the method further includes: The terminal device displays a ninth interface in response to a thirteenth operation of selecting the first album in the third interface, where the ninth interface displays an eighth button for unhiding the album. In response to a fourteenth operation on the eighth button, the terminal device skips displaying the icon of the first album, and displays the icon of the fourth album in the third interface. This can enable the terminal device to provide a function for hiding the photo in an album dimension, and provide a function for unhiding the photo in the album dimension, simplify the method for hiding the photo, and improve user experience for the function for hiding the photo.
The third interface may be a hidden album interface, for example, the third interface may be an interface shown in
In a possible implementation, the method further includes: When the terminal device obtains a second image, and the second image belongs to the first album, the terminal device displays the icon of the first album in the first interface. The terminal device displays a tenth interface in response to a fifteenth operation of selecting the first album, where the tenth interface displays the second image in the first album. This can enable the terminal device to implement reasonable division of the hidden album and an unhidden album.
The first album may be a “camera” album shown in
In a possible implementation, a display style in the third interface is consistent with a display style in the first interface. This can ensure user experience on the function for hiding the album, and avoid a style difference.
According to a second aspect, an embodiment of this application provides a method for hiding a photo. The method includes: A terminal device displays a third interface, where the third interface includes a first album that is hidden. The terminal device displays a fourth interface in response to a sixth operation on the first album in the third interface, where the fourth interface displays a photo in the first album and a fourth button for adding a photo to the album. In response to a seventh operation on the fourth button, when the terminal device determines that there is a first album that is not hidden and has a same name as the first album, the terminal device displays a fifth interface, where the fifth interface displays a photo in the first album that is not hidden. Alternatively, in response to an eighth operation on the fourth button, when the terminal device determines that there is no album that is not hidden and has a same name as the first album, the terminal device displays a sixth interface, where the sixth interface displays a photo that is not hidden, and the photo that is not hidden does not include the photo in the first album. In this way, when a photo is added to any hidden album, the terminal device can locate, by default, a photo that is not hidden and has a same album name as the hidden album, which is convenient for a user to select a appropriate to-be-hidden photo in the same album. When the terminal device determines that there is no album that has the same name as the hidden album, the terminal device locates an “all photos” album by default, so that the user can select a to-be-hidden photo in the “all photos” album, thereby improving user experience.
The third interface may be a hidden album interface, for example, the third interface may be an interface shown in
In a possible implementation, the fifth interface further displays a fifth button for viewing the album, and the method further includes: The terminal device displays a seventh interface in response to a ninth operation on the fifth button, where the seventh interface displays an icon of a third album. The terminal device displays an eighth interface in response to a tenth operation of selecting the third album, where the eighth interface displays a first image in the third album and a sixth button indicating completion of adding the photo. When the first image is in a selected state, the terminal device displays the first image in the third interface in response to an eleventh operation on the sixth button. This can enable the terminal device to add a photo across albums in any hidden album.
The fifth interface may be an interface shown in
In a possible implementation, that the terminal device displays the first image in the third interface in response to an eleventh operation on the sixth button includes: The terminal device displays a third pop-up window in response to the eleventh operation, where the third pop-up window displays text information prompting to add a to-be-hidden photo across albums, and a seventh button for determining to hide the photo across albums. The electronic device displays the first image in the third interface in response to a twelfth operation on the seventh button. In this way, when the terminal device adds a photo across albums in the hidden album, the terminal device can initiate a prompt, so that the user can determine, based on the prompt, whether to continue adding the photo across albums.
The third pop-up window may be a pop-up window 1611 in an interface shown in
In a possible implementation, the terminal device displays a twelfth interface, where the twelfth interface displays a hidden album displayed in a photo view and a twelfth button for adding a photo in the hidden album. The terminal device displays a fourteenth interface in response to a twenty-fourth operation on the twelfth button, where the fourteenth interface displays a thirteenth button for viewing the album. The terminal device displays a fifteenth interface in response to a twenty-fifth operation on the thirteenth button, where the fifteenth interface displays an album that is not hidden. In this way, because photos in an “all photos” album are displayed by default in an interface shown in
The twelfth interface may be an interface shown in
The fourteenth interface further displays a fifth image and a fourteenth button indicating completion of adding the photo, and the method further includes: When the fifth image is in a selected state, the terminal device adds the fifth image to the hidden album in response to a twenty-sixth operation on the fourteenth button. This can enable the terminal device to add a photo in a hidden album.
In the interface shown in
In a possible implementation, the twelfth interface further displays a fifteenth button for adding a photo in the hidden album, and the method further includes: The terminal device displays a sixteenth interface in response to a twenty-ninth operation on the fifteenth button, where the sixteenth interface displays a sixteenth button for switching the album. The terminal device displays a seventeenth interface in response to a thirtieth operation on the sixteenth button, where the seventeenth interface displays a drop-down menu, and the drop-down menu displays the album that is not hidden. In this way, because photos in an “all photos” album are displayed by default in an interface shown in
The twelfth interface may be an interface shown in
It can be understood that the second aspect may be combined with at least one possible implementation of the first aspect to form a new solution.
According to a third aspect, an embodiment of this application provides a method for hiding a photo. The method further includes: The terminal device displays a first interface, where the first interface displays a third button for viewing more functions in albums. The terminal device displays a second pop-up window in response to a fourth operation on the third button, where the second pop-up window displays a first option for viewing a hidden album. The terminal device displays a third interface in response to a fifth operation on the first option, where the third interface displays a first album displayed in an album dimension and a seventeenth button for switching a display manner of a photo in the hidden album. When the hidden album satisfies a first view, the terminal device displays a sixth pop-up window in response to a thirty-first operation on the seventeenth button, where the sixth pop-up window displays a fourth option for switching to a second view. The terminal device displays the photo in the hidden album in the third interface in the second view in response to a thirty-second operation on the fourth option. This can enable a user to switch a view of the hidden album based on a requirement.
The first interface may be an ordinary album interface, for example, the first interface may be an interface shown in
Descriptions are provided by using an example in which the third interface is an interface shown in
In a possible implementation, when the first view is an album view, the second view is a photo view; or when the first view is the photo view, the second view is the album view.
It can be understood that the third aspect may be combined with at least one possible implementation of the first aspect and/or at least one possible implementation of the second aspect to form a new solution.
According to a fourth aspect, an embodiment of this application provides a method for hiding a photo. The method includes: A terminal device displays a first interface, where the first interface includes a first album. The terminal device displays a second interface in response to a first operation of selecting the first album, where the second interface displays a first button for hiding the album. The electronic device skips displaying an icon of the first album in the first interface in response to a second operation on the first button. When the terminal device shots a second image, and a name of an album to which the second image belongs is the same as a name of the first album, the terminal device displays an icon of a third album in the first interface, where the third album includes the second image. This can enable the terminal device to implement reasonable division of the hidden album and an unhidden album.
The first album may be a “camera” album shown in
It can be understood that the fourth aspect may be combined with at least one possible implementation of the first aspect, at least one possible implementation of the second aspect, and/or at least one possible implementation of the third aspect to form a new solution.
According to a fifth aspect, an embodiment of this application provides a method for hiding a photo. The method further includes: A terminal device displays a first interface, where the first interface includes an icon of a fifth album. The terminal device displays a tenth interface in response to a sixteenth operation on the fifth album, where the tenth interface displays a third image. The terminal device displays an eleventh interface in response to a seventeenth operation on the third image, where the eleventh interface displays a ninth button for viewing more functions of the image. The terminal device displays a fourth pop-up window in response to an eighteenth operation on the ninth button, where the fourth pop-up window displays a second option for hiding the photo. The terminal device skips displaying the third image in the tenth interface in response to a nineteenth operation on the second option. This can enable the user to hide at least one photo by operating the at least one photo.
The first interface may be an interface shown in
The terminal device displays a fifth pop-up window in response to a twentieth operation on the tenth button, where the fifth pop-up window displays a third option for viewing a hidden album. The terminal device displays a twelfth interface in response to a twenty-first operation on the third option, where the twelfth interface displays the third image. This can enable the user to redetermine whether to hide a photo in the pop-up window.
The tenth button for viewing the more functions in the albums may alternatively be a button 1101 in the upper right corner of an interface shown in
In a possible implementation, the twelfth interface further includes a fourth image, and the method further includes: The terminal device displays a thirteenth interface in response to a twenty-second operation of selecting the third image in the twelfth interface, where the thirteenth interface displays an eleventh button for unhiding the photo. In response to a twenty-third operation on the eleventh button, the terminal device skips displaying the third image, and displays the fourth image in the twelfth interface. This can enable the terminal device to provide a function for hiding the photo in a photo dimension, and provide a function for unhiding the photo in the photo dimension, simplify the method for hiding the photo, and improve user experience for the function for hiding the photo.
The twelfth interface may alternatively be an interface shown in
It can be understood that the fifth aspect may be combined with at least one possible implementation of the first aspect, at least one possible implementation of the second aspect, at least one possible implementation of the third aspect, and/or at least one possible implementation of the fourth aspect to form a new solution.
According to a sixth aspect, an embodiment of this application provides an apparatus for hiding a photo, a display unit, configured to display a first interface, where the first interface displays an icon of a first album and an icon of a second album, the display unit is further configured to display a second interface in response to a first operation of selecting the first album, the second interface displays a first button for hiding the album, the display unit is further configured to display the first interface in response to a second operation on the first button, and after the second operation, the display unit is configured to display the icon of the second album in the first interface; and a processing unit, configured to skip displaying the icon of the first album.
In a possible implementation, the display unit is configured to display a first pop-up window in response to the second operation, and the first pop-up window displays text information prompting whether to hide the album and a second button for determining to hide the first album. The display unit is further configured to display the first interface in response to a third operation on the second button.
In a possible implementation, after the first operation, in response to the first operation, the processing unit is configured to determine whether the first album satisfies a preset condition, and when the preset condition is not satisfied, the first button is in a disabled state, or when the preset condition is satisfied, the first button is in an available state.
In a possible implementation, the first interface further displays a third button for viewing more functions in albums, the display unit is configured to display a second pop-up window in response to a fourth operation on the third button, and the second pop-up window displays a first option for viewing a hidden album. The display unit is configured to display a third interface in response to a fifth operation on the first option, and the third interface displays the icon of the first album.
In a possible implementation, the display unit is configured to display a fourth interface in response to a sixth operation of selecting the first album in the third interface, and the fourth interface displays a photo in the first album and a fourth button for adding a photo to the album. In response to a seventh operation on the fourth button, when a terminal device determines that there is a first album that is not hidden and has a same name as the first album, the display unit is configured to display a fifth interface, and the fifth interface displays a photo in the first album that is not hidden. Alternatively, in response to an eighth operation on the fourth button, when a terminal device determines that there is no album that is not hidden and has a same name as the first album, the display unit is configured to display a sixth interface, the sixth interface displays a photo that is not hidden, and the photo that is not hidden does not include the photo in the first album.
In a possible implementation, the fifth interface further displays a fifth button for viewing the album, the display unit is configured to display a seventh interface in response to a ninth operation on the fifth option, and the seventh interface displays an icon of a third album. The display unit is configured to display an eighth interface in response to a tenth operation of selecting the third album, and the eighth interface displays a first image in the third album and a sixth button indicating completion of adding the photo. When the first image is in a selected state, the display unit is further configured to display the first image in the third interface in response to an eleventh operation on the sixth button.
In a possible implementation, the display unit is configured to display a third pop-up window in response to the eleventh operation, the third pop-up window displays text information prompting to add a to-be-hidden photo across albums, and a seventh button for determining to hide the photo across albums. The display unit is further configured to display the first image in the third interface in response to a twelfth operation on the seventh button.
In a possible implementation, the third interface includes an icon of a fourth album, the display unit is configured to display a ninth interface in response to a thirteenth operation of selecting the first album in the third interface, and the ninth interface displays an eighth button for unhiding the album. In response to a fourteenth operation on the eighth button, the processing unit is further configured to skip displaying the icon of the first album in the third interface, and the display unit is further configured to display the icon of the fourth album.
In a possible implementation, when the terminal device obtains a second image, and the second image belongs to the first album, the terminal device displays the icon of the first album in the first interface. The display unit is configured to display a tenth interface in response to a fifteenth operation of selecting the first album, and the tenth interface displays the second image in the first album.
In a possible implementation, the first interface further displays an icon of a fifth album, in response to a sixteenth operation of selecting the fifth album, the display unit is configured to display a tenth interface, and the tenth interface displays a third image. The display unit is configured to display an eleventh interface in response to a seventeenth operation of selecting the third image, and the eleventh interface displays a ninth button for viewing more functions of the image. The display unit is configured to display a fourth pop-up window in response to an eighteenth operation on the ninth button, and the fourth pop-up window displays a second option for hiding the photo. The processing unit is configured to skip displaying the third image in the tenth interface in response to a nineteenth operation on the second option.
In a possible implementation, the first interface further displays a tenth button for viewing more functions in the albums, the display unit is configured to display a fifth pop-up window in response to a twentieth operation on the tenth button, and the fifth pop-up window displays a third option for viewing a hidden album. The display unit is configured to display a twelfth interface in response to a twenty-first operation on the third option, and the twelfth interface displays the third image.
In a possible implementation, the display unit is configured to display a thirteenth interface in response to a twenty-second operation of selecting the third image in the twelfth interface, and the thirteenth interface displays an eleventh button for unhiding the photo. In response to a twenty-third operation on the eleventh button, the processing unit is configured to skip displaying the third image in the twelfth interface, and display the fourth image.
In a possible implementation, the twelfth interface further displays a twelfth button for adding a photo in the hidden album, the display unit is configured to display a fourteenth interface in response to a twenty-fourth operation on the twelfth button, the fourteenth interface displays a thirteenth button for viewing the album, and the fourteenth interface further includes a fifth image and a fourteenth button indicating completion of adding the photo. In response to a twenty-fifth operation on the thirteenth button, the display unit is configured to display a fifteenth interface, and the fifteenth interface displays an album that is not hidden. The method further includes: When the fifth image is in a selected state, the processing unit is configured to add the fifth image to the hidden album in response to a twenty-sixth operation on the fourteenth button.
In a possible implementation, the display unit is configured to display the third interface in response to a twenty-seventh operation of opening the third interface, and the third interface includes a sixth album to which the fifth image belongs. The display unit is configured to display the fifth image in response to a twenty-eighth operation on the sixth album.
In a possible implementation, the twelfth interface further displays a fifteenth button for adding a photo in the hidden album, the display unit is configured to display a sixteenth interface in response to a twenty-ninth operation on the fifteenth button, and the sixteenth interface displays a sixteenth button for switching the album. The display unit is configured to display a seventeenth interface in response to a thirtieth operation on the sixteenth button, and the seventeenth interface displays a drop-down menu, and the drop-down menu displays the album that is not hidden.
In a possible implementation, a display style of the third interface is consistent with a display style of the first interface, the third interface further displays a seventeenth button for switching a display manner of a photo in the hidden album, when the hidden album satisfies a first view, the display unit is configured to display a sixth pop-up window in response to a thirty-first operation on the seventeenth button, and the sixth pop-up window displays a fourth option for switching to a second view. The terminal device displays the photo in the hidden album in the third interface in the second view in response to a thirty-second operation on the fourth option.
In a possible implementation, when the first view is an album view, the second view is a photo view; or when the first view is the photo view, the second view is the album view.
According to a seventh aspect, an embodiment of this application provides a terminal device, including a memory, a processor, and a computer program that is stored in the memory and that can be run on the processor. When the processor executes the computer program, the terminal device is enabled to perform the method according to any one of the first aspect or the implementations of the first aspect, or the method according to any one of the second aspect or the implementations of the second aspect, or the method according to any one of the third aspect or the implementations of the third aspect, or the method according to any one of the fourth aspect or the implementations of the fourth aspect, or the method according to any one of the fifth aspect or the implementations of the fifth aspect.
According to an eighth aspect, an embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are executed, a computer is enabled to perform the method according to any one of the first aspect or the implementations of the first aspect, or the method according to any one of the second aspect or the implementations of the second aspect, or the method according to any one of the third aspect or the implementations of the third aspect, or the method according to any one of the fourth aspect or the implementations of the fourth aspect, or the method according to any one of the fifth aspect or the implementations of the fifth aspect.
According to a ninth aspect, a computer program product is provided and includes a computer program. When the computer program is run, a computer is enabled to perform the method according to any one of the first aspect or the implementations of the first aspect, or the method according to any one of the second aspect or the implementations of the second aspect, or the method according to any one of the third aspect or the implementations of the third aspect, or the method according to any one of the fourth aspect or the implementations of the fourth aspect, or the method according to any one of the fifth aspect or the implementations of the fifth aspect.
It should be understood that the sixth aspect to the eighth aspect of this application correspond to technical solutions of the first aspect to the fifth aspect of this application, and beneficial effect obtained by each aspect and the corresponding feasible implementations is similar. Details are not described herein again.
For ease of describing the technical solutions in embodiments of this application clearly, in embodiments of this application, words such as “first” and “second” are used to distinguish same or similar items with a basically same function and role. For example, a first value and a second value are merely used to distinguish between different values, and are not intended to limit a sequence thereof. A person skilled in the art may understand that the terms “first”, “second”, and the like, and do not limit a quantity and an execution order, and the terms “first”, “second”, and the like are not limited to be necessarily different.
It should be noted that, in this application, the term “example” or “for example” is used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as an “example” or “for example” in this application should not be explained as being more preferred or having more advantages than another embodiment or design scheme. In particular, the terms such as “example” and “example” as used herein are intended to present the related concept in a specific implementation.
In this application, “at least one” refers to one or more, and “a plurality of” refers to two or more. The term “and/or” describes an association relationship for associated objects and represents that three relationships may exist. For example, A and/or B may represent: Only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character “/” in this specification generally indicates an “or” relationship between the associated objects. “At least one of the following items (pieces)” or a similar expression means any combination of these items, including a single item (piece) or any combination of a plurality of items (pieces). For example, at least one of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c may be single or multiple.
To better understand embodiments of this application, the following describes a structure of a terminal device in embodiments of this application. For example,
It may be understood that, the terminal device may alternatively be referred to as a terminal (terminal), user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), or the like. The terminal device may be a mobile phone (mobile phone) having a display, a smart television, a wearable device, a tablet computer (Pad), a computer having a wireless transmission and receiving function, a virtual reality (Virtual Reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical surgery (remote medical surgery), a wireless terminal in a smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart home (smart home), or the like. Embodiments of this application impose no limitation on a specific technology and a specific device form used by the electronic device.
As shown in
It may be understood that an example structure in this embodiment of this application does not constitute a specific limitation on the terminal device. In some other embodiments of this application, the terminal device may include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components in the figure may be implemented by hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units. Different processing units may be separate devices, or may be integrated into one or more processors. A memory may alternatively be disposed in the processor 110, and is configured to store instructions and data.
The USB interface 130 is an interface that complies with the USB standard specification, and may be specifically a mini-USB interface, a micro-USB interface, a USB type-c interface, and the like. The USB interface 130 may be configured to connect to a charger to charge the terminal device, or may be used for data transmission between the terminal device and a peripheral device, The USB interface 130 may alternatively be configured to connect to a headset to play audio through the headset. The interface may alternatively be configured to be connected to another electronic device like an AR device.
The charging management module 140 is configured to receive charging input from the charger. The charger may be a wireless charger or a wired charger. The power management module 141 is configured to connect to the charging management module 140 and the processor 110.
A wireless communication function of the terminal device may be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antenna 1 and the antenna 2 are configured to receive and transmit electromagnetic wave signals. An antenna in the terminal device may be configured to cover a single communication frequency band or a plurality of communication frequency bands. Different antennas may alternatively be multiplexed to improve utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication such 2G/3G/4G/5G to be applied to the terminal device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave through the antenna 1, perform processing such as filtering and amplification on the received electromagnetic wave, and send a processed electromagnetic wave to the modem processor for demodulation.
The wireless communication module 160 may provide a solution for wireless communication including wireless local area networks (wireless local area networks, WLAN) (such as a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), and the like to be applied to the terminal device.
The terminal device implements a display function by using a GPU, the display 194, the application processor, and the like. The GPU is a microprocessor for image processing and connects the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations, and is configured to render graphics.
The display 194 is configured to display an image, a video, and the like. The display 194 includes a display panel. In some embodiments, the terminal device may include 1 or N displays 194. N is a positive integer greater than 1.
In a possible implementation, when the terminal device is a device having a touch function, the display 194 may be combined with a touchscreen. When a user presses a corresponding location of the display 194, it is equivalent to a user pressing a corresponding location of the touchscreen.
The press operation may include a tap operation, a touch and hold operation, and the like. The tap operation may be an operation that is pressed at the corresponding location of the display 194 and lifted within a preset time threshold. The touch and hold operation may be an operation that is pressed at the corresponding location of the display 194 and lifted after continuously pressed for a preset time threshold. It may be understood that both the tap operation and the touch and hold operation described in embodiments of this application may be used in the terminal device on which the display 194 is combined with the touchscreen. Details are not described below.
In a possible implementation, the display 194 may not be combined with a touchscreen. The tap operation and the touch and hold operation in embodiments of this application may be replaced with other operations. This is not limited in embodiments of this application.
The terminal device may implement a photographing function by using the ISP, the camera 193, a video codec, the GPU, the display 194, the application processor, and the like.
The camera 193 is configured to capture a still image or video. In some embodiments, the terminal device may include one or N cameras 193, where N is a positive integer greater than 1.
The external memory interface 120 may be configured to connect to an external storage card like a micro SD card, to extend a storage capability of the terminal device. The external storage card communicates with the processor 110 by using the external memory interface 120, to implement a data storage function, for example, store files such as music and a video into the external storage card.
The internal memory 121 may be configured to store computer-executable program code, where the executable program code includes instructions. The internal memory 121 may include a program storage area and a data storage area.
The terminal device may implement an audio function, for example, music playback and recording, by using the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headset jack 170D, the application processor, and the like.
The audio module 170 is configured to convert digital audio information into analog audio signal output, and is also configured to convert analog audio input into a digital audio signal. The speaker 170A, also referred to as a “loudspeaker”, is configured to convert an audio electrical signal into a sound signal. Music can be listened to or a hands-free call can be answered by using the speaker 170A in the terminal device. The receiver 170B, also referred to as a “handset”, is configured to convert an audio electrical signal into a sound signal. When a call is answered or voice information is listened to by using the terminal device, the receiver 170B may be put close to a human ear to listen to a voice. The headset jack 170D is configured to be connected to a wired headset.
The microphone 170C, also referred to as a “mike” or “mic”, is configured to convert a sound signal into an electrical signal. In this embodiment of this application, the terminal device may receive a sound signal for waking up the terminal device based on the microphone 170C, and convert the sound signal into an electrical signal that can be subsequently processed, and the terminal device may have at least one microphone 170C.
The sensor module 180 may include one or more following types of sensors: a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, an optical proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like (not shown in
The button 190 includes a power button, a volume button, and the like. The button 190 may be a mechanical button, or a touch-type button. The terminal device may receive button input, and generate button signal input related to user setting and function control of the terminal device. The indicator 192 may be an indicator light that may be configured to indicate a charging status and a power change, or may be configured to indicate a message, a missed call, a notification, and the like.
A software system of the terminal device may use a layered architecture, an event-driven architecture, a microkernel architecture, a micro service architecture, a cloud architecture, or the like. Details are not described herein again.
The following describes, in detail by using specific embodiments, the technical solutions of this application and how to resolve the foregoing technical problems according to the technical solutions of this application. The following several specific embodiments may be independently implemented, and may also be combined with each other, and the same or similar concepts or processes may not be described repeatedly in some embodiments.
In embodiments of this application, descriptions are provided by using an example in which the terminal device is a mobile phone, and the example does not constitute a limitation on embodiments of this application.
In embodiments of this application, a gallery application on the terminal device may support display styles in two album dimensions, such as a first display style and a second display style. In the first display style, each album can be of a same size, and three albums can be displayed in a column in an ordinary album interface. In the second display style, the terminal device can display albums in different sizes, and display one album in one column or two albums in one column in an ordinary album interface. In addition, the first display style and the second display style may be switched based on user's operations.
The ordinary album interface may be understood as an interface that displays an album that is not hidden or an interface that displays a photo that is not hidden, and the ordinary interface may also be referred to an non-hidden album interface, or the like. Details are not described below.
In a possible implementation, the ordinary album interface can further support a list display style of displaying albums in a list, so that the user can switch between the first display style, the second display style, and the list display style.
Hiding an album may be understood as modifying a label (or an identifier) of the album, so that the album cannot be displayed in an ordinary album interface, and a storage path of the album is not changed. Hiding an album may alternatively be understood as adding the album to a hidden album interface displayed in an album view.
Hiding a photo may be understood as modifying the label (or an identifier) of the photo, so that the photo cannot be displayed in a multi-grid displayed ordinary album interface, and a storage path of the photo is not changed. Hiding a photo may alternatively be understood as adding the photo to a hidden album interface displayed in a photo view.
A hidden album is not a physical album, or may be understood as a virtual album. A storage location of any album in the hidden album is the same as a storage location of the album when the album is not hidden. A function for hiding an album may be used to hide a photo or an album in an ordinary album interface. For example, a user may implement the function for hiding the photo in an album dimension, for example, hide all photos in an album in the ordinary album interface through a specific interface (as shown in an embodiment corresponding to
It may be understood that when an album is hidden, the album that is hidden and the photo in the album that is hidden cannot be viewed when the user views the album from another application or another functional interface.
It may be understood that the two album display styles can be used not only to the ordinary album interface, but also to the hidden album interface, and a display style in the hidden album interface may be similar to a display style in the ordinary album interface. For example, when the ordinary album interface of the terminal device satisfies the first display style, and the terminal device detects an operation that the user opens the hidden album, the terminal device displays the hidden album interface, and the hidden album interface satisfies the first display style (refer to an embodiment corresponding to
For example,
When a terminal device detects an operation in which a user opens a gallery application, the terminal device may display an interface shown in
For example, when the terminal device detects a user's tap operation on a button for opening the gallery application, the terminal device may display the interface shown in
As shown in the interface in
content may be displayed on the “videos” album (or around the “videos” album). The gallery application is an image management application on the terminal device, and is also referred to as an “album” application, or the like. A name of the application is not limited in embodiments of this application. The gallery application can support the user to perform various operations on photos stored on the terminal device, such as browse, edit, delete, select, and hide operations.
In a possible implementation, when the terminal device detects the operation in which the user opens the gallery application, the terminal device may display in default, the interface satisfying the first display style shown in
It may be understood that the terminal device may display the interface shown in
In the interface shown in
The pop-up window 207 is used to display more functions in the gallery application. The pop-up window 207 may be an interactive pop-up window. This is not limited in embodiments of this application. Specifically, the pop-up window 207 may include an albums sorting option, a style switching option, a hidden albums option 208, a download list option, a settings option, and the like. The albums sorting option is used to reorder the albums, the style switching option is used to switch a display style of the albums, the hidden albums option 208 is used to view a hidden album, the download list option is used to view a downloaded album, and the settings option is used to set the albums in the gallery application.
In the interface shown in
It may be understood that a display style of the ordinary album interface shown in
For example,
When a terminal device detects an operation in which a user opens a gallery application, the terminal device may display an interface shown in
As shown in the interface in
In the interface shown in
In the interface shown in
It may be understood that a display style of the ordinary album interface shown in
In a possible implementation, the terminal device may further support switching between the two display styles in the ordinary album interface. For example, in the ordinary album interface that satisfies the first display style as shown in
It may be understood that in embodiments corresponding to
Based on this, keeping a same display style in both the ordinary album interface and the hidden album interface of the terminal device can improve user experience on a function for hiding a photo and avoid discomfort caused by different display styles when the terminal device switches from the ordinary album interface to the hidden album interface.
On the basis of opening the hidden album interface in embodiments corresponding to
It may be understood that when the terminal device detects an operation in which the user opens the hidden albums, the hidden albums can support the album view and the photo view, and the terminal device can also support switching from the album view to the photo view in the hidden albums and from the photo view to the album view in the hidden albums.
For example, a hidden album interface satisfying the first display style is used as an example to describe switching of the views in the hidden albums (refer to embodiments corresponding to
For example,
As shown in a hidden album interface displayed in the album view in
As shown in the interface in
The pop-up window 402 indicates a view to which the hidden albums may be switched, as shown in the interface
In a possible implementation, the button 401 for switching the display manner of the photo in the hidden albums may be replaced with a text button or another icon button. For example, the text button may display as information such as switching views. This is not specifically limited in embodiments of this application.
In the interface shown in
For example,
As shown in a hidden album interface displayed in the photo view in
The pop-up window 502 indicates a view to which the hidden albums may be switched. For example, the pop-up window 502 may include an album view option. For example, the album view option may be displayed as album view or may be displayed as switch to an album view. Content displayed in the pop-up window 502 is not limited in embodiments of this application.
In the interface shown in
Based on this, the terminal device can provide a plurality of views in the hidden album interface, so that the user can flexibly adjust a display manner of hidden photos in the hidden albums based on user's requirement, thereby improving user experience on a function for hiding a photo.
Based on embodiments corresponding to
It may be understood that in the following embodiments in Scenario 1 and embodiments in Scenario 2, the function for hiding the photo is described by using a hidden album interface satisfying a first display style as an example. This example does not constitute a limitation on embodiments of this application.
Scenario 1 The terminal device can provide the user with the function for hiding the photo in the album dimension (refer to an embodiment in Method 1) and the function for hiding the photo in the photo dimension (refer to an embodiment in Method 2).
Method 1: The terminal device can provide the user with the function for hiding the photo in the album dimension.
It may be understood that albums in the terminal device may be divided into a physical album and a virtual album. The physical album may be an album that is actually stored in a file manager and has a real path. The virtual album may be an album that is not actually stored in a file manager and has no real path. The physical album is allowed to be hidden. For example, the physical album may have the function for hiding the photo in the camera dimension provided in this embodiment of this application, a function for unhiding a photo in the album dimension, and the like.
The virtual album does not have the function. A photo in the physical album and a photo in the virtual album may overlap. For example, a physical album A includes photos 1 to 10, a physical album B includes photos 11 to 20, and a virtual album C may include photos 5 to 15. Compared with the physical album, the virtual album classifies photos in different dimensions.
In this embodiment of this application, the physical album in the terminal device may hide the photo in the album dimension based on the embodiment in
When the terminal device detects an operation in which a user opens a gallery application, the terminal device may display an interface shown in
In the interface shown in
The share button is used to share an album with another device or application, the rename button is used to rename an album, the hide button 601 is used to hide an album, the delete button is used to delete an album, and the download button is used to download an album.
As shown in the interface in
In a possible implementation, when the terminal device detects the user's touch and hold operation on the “dogs” album, the check button on the “dogs” album is in the selected state. After that, the terminal device may cancel the selected state of the “dogs” album based on a user's tap operation on the “dogs” album. In this case, the terminal device may select another required album based on a user's tap operation on another album. For example, the terminal device may delete, share, or hide the selected album based on the user's tap operation on another album.
In the interface shown in
It may be understood that the pop-up window 602 may be an interactive pop-up window, so that the user can perform an operation on the pop-up window 602. The pop-up window 602 may be in full screen or may not be in full screen. This is not limited in this embodiment of this application.
As shown in the interface in
The text information prompting whether to hide the album in the pop-up window 602 may be: Hide the album?. The text information prompting how to view the hidden album in the pop-up window 602 may be: All photos in this album will be hidden, but can be found in “Hidden albums” in the upper right corner “:” of “Albums”. The button for determining to hide the album in the pop-up window 602 may be displayed as an “OK” button, or may be in a “Yes” button, or another form. The button for canceling hiding the album may be displayed as a “cancel” button, or may be in an “No” button, or another form.
“:” may represent the button 301 shown in
It may be understood that content such as a display type of the pop-up window 602, and text information and buttons displayed in the pop-up window 602 are not specifically limited in this embodiment of this application.
In the interface shown in
Alternatively, in the interface shown in
In a possible implementation, in the interface shown in
It may be understood that because the “dogs” album is a physical album, the “dogs” album may be hidden. For example, when the user hides, based on the interface shown in
As shown in the interface in
It may be understood that because the “all photos” album, the “videos” album, and the “favorites” album may all be virtual albums, the user cannot perform rename, hide, and delete functions on at least one of the “all photos” album, the “videos” album, and the “favorites” album. When selected albums are physical albums, the user can perform rename, hide, and delete functions on at least one physical album.
As shown in the interface in
In a possible implementation, when the terminal device detects that the user selects an “all photos” album, a “videos” album, and a “favorites” album, a rename button 603, a hide button 604, and a delete button 605 may not be displayed in the interface shown in
In a possible implementation, in the interface shown in
Based on this, the user can hide the physical album in the album dimension in the embodiment in
On the basis of the embodiment in
In a possible implementation, the user can add a plurality of albums to the hidden albums based on the embodiment in
For example,
In an ordinary album interface shown in
As shown in the interface in
In the interface shown in
As shown in the interface in
The text information prompting whether to hide the album in the pop-up window 702 may be: Hide the album?. The text information prompting how to view the hidden album in the pop-up window 702 may be: All photos in this album will be hidden, but can be found in “Hidden albums” in the upper right corner “:” of “Albums”. It may be understood that for a form of the pop-up window 702, refer to the descriptions about the pop-up window 602 in the embodiment in
In the interface shown in
In a possible implementation, if the user already adds the “camera” album to the hidden albums, and the terminal device detects that the user shots a photo by using a photographing function of the terminal device (the photo belongs to the “camera” album), the terminal device may create a new album for the added photo and add the album to an ordinary album interface, or the terminal device may add the photo to the hidden albums based on the corresponding album.
In an implementation, the terminal device may create the new album for the added photo and add the album to the ordinary album interface. For example, when the terminal device detects that the user shots the photo by using the photographing function of the terminal device, the ordinary album interface of the terminal device may be displayed as an interface shown in
In the interface shown in
In another implementation, the terminal device may further add the photo to the hidden albums based on the corresponding album. For example, when the terminal device detects that the user shots the photo by using the photographing function of the terminal device, the terminal device may add the shot photo to the “camera” album in the hidden albums.
For example, on the basis of adding a “camera” album and a “screenshots and screen records” album to hidden albums, the terminal device may also support a function for unhiding photos in the album dimension. For example,
A hidden album interface shown in
As shown in the interface in
In the interface shown in
This can enable the terminal device to provide the function for hiding the photo in the album dimension, and provide a function for unhiding the photo in the album dimension, simplify the method for hiding the photo, and improve user experience for the function for hiding the photo.
Method 2: The terminal device can provide the user with the function for hiding the photo in the photo dimension.
In embodiments of this application, the terminal device may provide the method for hiding the photo in two photo dimensions, such as hiding a single photo from a full-screen display interface corresponding to the single photo (refer to an embodiment in
In an implementation, the terminal device may hide the single photo from the full-screen display interface corresponding to the single photo. For example,
When a terminal device detects a user's tap operation on any photo in the photo dimension, the terminal device may display an interface shown in
The shot date of the photo may be Mar. 28, 2022, the shot time may be 17:15, and the text information of the shot address may be XX City, XX District.
The share button may be used to share a photo to another device or application. The favorites button may be used to collect a photo, so that the photo appears in a “favorites” album. The edit button may be used to crop, perform filter adjustment, and perform color adjustment on a photo. The delete button may be used to delete a photo. The more button 901 is used to view more functions of a photo.
In the interface shown in
As shown in the interface in
The move option is used to move the photo to another album. The copy option is used to copy the photo to another album. The comments option is used to add comments information to the photo. The hide option 903 is used to hide the photo. The more edits option is used to make another edit on the photo. The print or generate a PDF option is used to print or generate the photo to a PDF version. The rename option is used to rename the photo. The set as option is used to set the photo as a contact photo or a wallpaper. The rotate option is used to rotate the photo.
As shown in the interface in
In a possible implementation, when the hidden albums include an album to which the photo 900 belongs, the terminal device may add the photo 900 to the belonging album. For example, if the photo 900 belongs to a “scenery” album and the hidden albums also include a “scenery” album, the terminal device can add the photo 900 to the “scenery” album in the hidden albums based on user's operation of adding the photo 900 to the hidden albums. For the operation of adding the photo 900 to the hidden albums, refer to descriptions in the embodiment in
In a possible implementation, when the hidden albums do not include an album to which the photo 900 belongs, the terminal device may create an album for the photo 900 and add the album with the photo 900 to the hidden albums. For example, if the photo 900 belongs to a “scenery” album and the hidden albums do not include a “scenery” album, based on user's operation of adding the photo 900 to the hidden albums, the terminal device may create a “scenery” album in the hidden albums, and add the photo 900 to the “scenery” album in the hidden albums.
In another implementation, the terminal device may hide the at least one photo from the multi-grid display interface corresponding to the photo dimension. For example,
When a terminal device detects an operation in which a user opens a gallery application, the terminal device may display an interface shown in
In the interface shown in
In a possible implementation, in the interface shown in
In the interface shown in
In the interface shown in
In the interface shown in
As shown in the interface in
The download option is used to download the photos. The move option is used to move the photos to another album. The copy option is used to move the photos to another album. The hide option 1006 is used to hide the photos. The print or generate a PDF option is used to print or generate the photos to PDF versions. The details option is used to view details of the photos.
In the interface shown in
As shown in the interface in
As shown in the interface in
The text information prompting whether to hide the photos in the pop-up window 1007 may be: Hide the three files?. The text information prompting how to view the hidden album in the pop-up window 1007 may be: The files can be found in “Hidden albums” in the upper right corner “:” of “Albums”.
In the interface shown in
In a possible implementation, a method for determining an album to which the photo 1001, the photo 1002, and the photo 1003 belong in the hidden albums, refer to a method for determining an album to which the photo 900 belongs in the hidden albums in the embodiment in
Based on this, the terminal device can add one or more photos to the hidden albums in the photo dimension in embodiments in
On the basis of embodiments in
When a terminal device detects an operation in which a user opens a gallery application, the terminal device may display an interface shown in
In the interface shown in
In the interface shown in
It may be understood that when the terminal device hides the albums in the photo dimension in embodiments in
In the embodiment in
As shown in a hidden album interface in
In the interface shown in
In the interface shown in
This can enable the terminal device to provide the function for hiding the photo in the photo dimension, and provide the function for unhiding the photo in the photo dimension, simplify the method for hiding the photo, and improve user experience for the function for hiding the photo.
Scenario 2 The terminal device may provide the user with an ability of adding the photo in the function for hiding the photo.
In embodiments of this application, the terminal device may provide a plurality of methods for adding the photo in the function for hiding the photo. For example, in Method A, the terminal device may add a photo to hidden albums in a photo view (refer to embodiments in
Method A: The terminal device may add the photo to the hidden albums in the photo view.
In embodiments in
In an implementation, the terminal device can add the photo based on a button for opening an album. For example,
When a terminal device detects an operation in which a user opens the hidden albums, the terminal device may display an interface shown in
In the interface shown in
In the interface shown in
It may be understood that because the photos in the “all photos” album are displayed by default in the interface shown in
In another implementation, the terminal device can add the photo based on a drop-down menu for opening an album. For example,
When a terminal device detects an operation in which a user opens the hidden albums, the terminal device may display an interface shown in
In the interface shown in
In the interface shown in
It may be understood that because the photos in the “all photos” album are displayed by default in the interface shown in
Method B: The terminal device can add the photo in any hidden album.
In an implementation, the terminal device may determine, based on a case whether the hidden album has a photo that is not hidden in an ordinary album interface, a default interface displayed when the photo is added to the hidden album. For example,
As shown in a hidden album interface in
In the interface shown in
In a possible implementation, in the interface shown in
In a possible implementation, in the interface shown in
It may be understood that when the photo is added to any hidden album, the terminal device can locate, by default, the photo that is not hidden and has a same album name as the hidden album, which is convenient for the user to select a appropriate to-be-hidden photo in the same album. When the terminal device determines that there is no album that has the same name as the hidden album, the terminal device locates the “all photos” album by default, so that the user can select a to-be-hidden photo in the “all photos” album.
In another implementation, the terminal device can add a photo across hidden albums. For example,
As shown in a hidden album interface in
In the interface shown in
In the interface shown in
In the interface shown in
In the interface shown in
In a possible implementation, in the interface shown in
In the interface shown in
In the interface shown in
The pop-up window 1611 may be used to determine whether to add the to-be-hidden photo across albums. The pop-up window 1611 may be an interactive pop-up window. This is not limited in embodiments of this application. Specifically, the pop-up window 1611 may include text information prompting adding the to-be-hidden photo across albums, text information for no longer displaying the pop-up window, a check button for no longer displaying the pop-up window (the check button is in a selected state by default), a button for determining to hide the photos (or referred to as an OK button) across albums, a button for canceling hiding the photos (or referred to as a cancel button) across albums, and the like.
In the pop-up window 1611, the text information prompting adding the to-be-hidden photo across albums may be: The two files from other albums will be moved to the current hidden album (dogs). It may be understood that content such as a display type of the pop-up window 1611, and text information and buttons displayed in the pop-up window 1611 are not specifically limited in this embodiment of this application.
In a possible implementation, in the interface shown in
It may be understood that when the terminal device adds the photo across albums in the hidden album, the terminal device can initiate a prompt, so that the user can determine, based on the prompt, whether to continue adding the photo across albums.
In possible implementations, based on the above embodiments, the terminal device may further provide a function for renaming a hidden album. For example,
When a terminal device detects user's touch and hold operation on any album in hidden albums, for example, a touch and hold operation on a “dogs” album, the terminal device may display an interface shown in
In the interface shown in
As shown in the interface in
The text information prompting whether to rename the hidden album in the pop-up window 1702 may be: Rename the hidden album? When the album “dogs” in the hidden albums is renamed, an album “dogs” in albums that are not hidden is also modified. It may be understood that a display form of the pop-up window 1702 and content displayed in the pop-up window 1702 are not limited in embodiments of the application.
In a possible implementation, in the interface shown in
It may be understood that in the interface shown in
This enables the terminal device to rename the hidden album, and rename accordingly the album that is not hidden and that has a same name as the hidden album when the hidden album is renamed, thereby ensuring the consistency of album names.
It may be understood that, the interfaces provided in embodiments of this application are merely examples, and constitute no limitation on embodiments of this application.
On the basis of the above embodiments, an embodiment of this application provides a method for hiding a photo. For example,
As shown in
S1801: A terminal device displays a first interface, where the first interface displays an icon of a first album and an icon of a second album.
For example, the interface described in this embodiment of this application may be understood as a user interface (user interface, UI) interface. The UI interface refers to a layout design of man-machine interaction, operation logic, and interface beauty of software.
An Android system is used as an example. The interface described in this embodiment of this application may be understood as an activity interface, and the activity interface may be an interface without a jump. A pop-up window may also be understood as an activity interface.
It may be understood that a change in a layout design of the interface brings a new interface. For example, the first interface may be an ordinary album interface described in this embodiment of this application, or may be understood as a non-hidden album interface. For example, the first interface may be an interface shown in
The second album may be an album shown in
S1802: The terminal device displays the second interface in response to a first operation of selecting the first album.
The first operation on the first album may be a touch and hold operation on the “dogs” album. The second interface may be the interface shown in
It may be understood that the first button may alternatively be referred to as a hide button, a button for hiding the album, or the like. This is not limited in this embodiment of this application.
S1803: The terminal device displays the first interface in response to a second operation on the first button, where after the second operation, the first interface displays the icon of the second album, and skips displaying the icon of the first album.
The second operation on the first button may be a tap operation on the hide button 601. For a case in which the terminal device does not display the icon of the first album in the first interface, refer to the interface shown in
Based on this, the terminal device can hide a physical album in an album dimension, thereby simplifying the method for hiding the photo.
Optionally, S1803 may include: The terminal device displays a first pop-up window in response to a second operation, where the first pop-up window displays text information prompting whether to hide the album and a second button for determining to hide the first album; and displays the first interface in response to a third operation on the second button.
The first pop-up window may be the pop-up window 602 in the interface shown in
Optionally, the method further includes: After the first operation, the terminal device determines, in response to the first operation, whether the first album satisfies a preset condition, where when the preset condition is not satisfied, the first button is in a disabled state, or when the preset condition is satisfied, the first button is in an available state.
The available state can be a state in which the button can be triggered. The disabled state may be a state in which the button cannot be triggered and the disabled state may be unselected described in embodiments of this application. Specifically, for the available state, refer to the state in which the hide album button 601 shown in
It may be understood that when the first album is a virtual album, the first button may be gray and in the disabled state; or when the first album is a physical album, the first button is in the available state.
Optionally, the first interface further displays a third button for viewing more functions in albums, and the method further includes: The terminal device displays a second pop-up window in response to a fourth operation on the third button, where the second pop-up window displays a first option for viewing a hidden album. The terminal device displays a third interface in response to a fifth operation on the first option, where the third interface displays the icon of the first album.
The first interface may be an ordinary album interface, for example, the first interface may be the interface shown in
The second pop-up window may be a menu pop-up window 207 in the albums shown in
Optionally, the method further includes: The terminal device displays a fourth interface in response to a sixth operation on the first album in the third interface, where the fourth interface displays a photo in the first album and a fourth button for adding a photo to the album. In response to a seventh operation on the fourth button, when the terminal device determines that there is a first album that is not hidden and has a same name as the first album, the terminal device displays a fifth interface, where the fifth interface displays a photo in the first album that is not hidden. Alternatively, in response to an eighth operation on the fourth button, when the terminal device determines that there is no album that is not hidden and has a same name as the first album, the terminal device displays a sixth interface, where the sixth interface includes a photo that is not hidden, and the photo that is not hidden does not include the photo in the first album.
The third interface may be a hidden album interface, for example, the third interface may be an interface shown in
It may be understood that in the interface shown in
The eighth operation on the fourth button may be a tap operation on the button 1501. The seventh operation may be the same as the eighth operation. The sixth interface is an interface for adding a photo to the hidden album. The sixth interface is used to add all photos, to the hidden album, from an album that is not hidden. For example, the sixth interface may be the interface shown in
It may be understood that in the interface shown in
Optionally, the fifth interface further displays a fifth button for viewing the album, and the method further includes: The terminal device displays a seventh interface in response to a ninth operation on the fifth button, where the seventh interface displays an icon of a third album. The terminal device displays an eighth interface in response to a tenth operation of selecting the third album, where the eighth interface displays a first image in the third album and a sixth button indicating completion of adding the photo. When the first image is in a selected state, the terminal device displays the first image in the third interface in response to an eleventh operation on the sixth button.
The fifth interface may be an interface shown in
It may be understood that in the interface shown in
Optionally, the terminal device displays a third pop-up window in response to the eleventh operation, where the third pop-up window displays text information prompting to add a to-be-hidden photo across albums, and a seventh button for determining to hide the photo across albums. The electronic device displays the first image in the third interface in response to a twelfth operation on the seventh button.
The third pop-up window may be a pop-up window 1611 in the interface shown in
Optionally, the third interface includes an icon of a fourth album, and the method further includes: The terminal device displays a ninth interface in response to a thirteenth operation of selecting the first album in the third interface, where the ninth interface displays an eighth button for unhiding the album. In response to a fourteenth operation on the eighth button, the terminal device skips displaying the icon of the first album, and displays the icon of the fourth album in the third interface.
The third interface may be a hidden album interface, for example, the third interface may be an interface shown in
It may be understood that skipping displaying the first album in the third interface may be understood as skipping displaying the “screenshots and screen records” album in the interface shown in
Optionally, the method further includes: When the terminal device obtains a second image, and the second image belongs to the first album, the terminal device displays the icon of the first album in the first interface. The terminal device displays a tenth interface in response to a fifteenth operation of selecting the first album, where the tenth interface displays the second image in the first album.
The obtained second image may be shot by the user, may be a screenshot taken by the user in the terminal device, or may be shared by a mobile phone of another device. A method for obtaining the second image is not limited in this embodiment of the application.
The first album may be a “camera” album shown in
It may be understood that when the terminal device shoots a new image and a name of a “camera” album to which the image belongs is the same as a name of a “camera” album in a hidden album, the terminal device can create a “camera” album for the new image, and the “camera” album includes the new image.
Optionally, the first interface further displays an icon of a fifth album, and the method further includes: The terminal device displays a tenth interface in response to a sixteenth operation of selecting the fifth album, where the tenth interface displays a third image. The terminal device displays an eleventh interface in response to a seventeenth operation of selecting the third image, where the eleventh interface displays a ninth button for viewing more functions of the image. The terminal device displays a fourth pop-up window in response to an eighteenth operation on the ninth button, where the fourth pop-up window displays a second option for hiding the photo. The terminal device skips displaying the third image in the tenth interface in response to a nineteenth operation on the second option.
The first interface may alternatively be the interface shown in
It may be understood that the photo 1001 is in a selected state and when the terminal device receives the tap operation on the hide option 1006, the interface shown in
In a possible implementation, in the interface shown in
Optionally, the first interface further displays a tenth button for viewing more functions in albums, and the method further includes: The terminal device displays a fifth pop-up window in response to a twentieth operation on the tenth button, where the fifth pop-up window displays a third option for viewing a hidden album. The terminal device displays a twelfth interface in response to a twenty-first operation on the third option, where the twelfth interface displays the third image. The first interface may alternatively be the interface shown in
the interface shown in
Optionally, the method further includes: The terminal device displays a thirteenth interface in response to a twenty-second operation of selecting the third image in the twelfth interface, where the thirteenth interface displays an eleventh button for unhiding the photo. In response to a twenty-third operation on the eleventh button, the terminal device skips displaying the third image, and displays the fourth image in the twelfth interface.
The twelfth interface may alternatively be an interface shown in
Skipping displaying the third image in the twelfth interface may be understood as the terminal device skips displaying, in the interface shown in
Optionally, the twelfth interface further displays a twelfth button for adding a photo in the hidden album, and the method further includes: The terminal device displays a fourteenth interface in response to a twenty-fourth operation on the twelfth button, where the fourteenth interface displays a thirteenth button for viewing the album. The terminal device displays a fifteenth interface in response to a twenty-fifth operation on the thirteenth button, where the fifteenth interface displays an album that is not hidden.
The twelfth interface may be the interface shown in
Optionally, the fourteenth interface further displays a fifth image and a fourteenth button indicating completion of adding the photo, and the method further includes: When the fifth image is in a selected state, the terminal device adds the fifth image to the hidden album in response to a twenty-sixth operation on the fourteenth button.
In the interface shown in
In a possible implementation, when the hidden album includes an album to which the fifth image belongs, the terminal device adds the fifth image to the album to which the fifth image belongs. Alternatively, when the hidden album does not include an belonging album, the terminal device creates, in the hidden album, an album to which the fifth image belongs and adds the fifth image to the album to which the fifth image belongs. That the hidden album includes the fifth image may be understood as that the album to which the fifth image belongs to the hidden album.
Any album belonging to the hidden album may be understood in the following three manners. 1. All photos in any album belong to the hidden album; 2. Some photos in any album belong to the hidden album; or 3. All photos in any album do not belong to the hidden album. In this embodiment in this application, the hidden album includes the album to which the fifth album belongs may be understood as satisfying content described in 1 and 2 above.
In a possible implementation, the method further includes: The terminal device displays the third interface in response to a twenty-seventh operation of opening the third interface, where the third interface includes a sixth album to which the fifth image belongs. The terminal device displays the fifth image in response to a twenty-eighth operation on the sixth album, where the twenty-seventh operation may be an operation for opening the third interface.
It may be understood that when the fifth image is added to the belonging sixth album, the fifth image can be viewed in the sixth album in a hidden album interface.
Optionally, the twelfth interface further displays a fifteenth button for adding a photo in the hidden album, and the method further includes: The terminal device displays a sixteenth interface in response to a twenty-ninth operation on the fifteenth button, where the sixteenth interface displays a sixteenth button for switching the album. The terminal device displays a seventeenth interface in response to a thirtieth operation on the sixteenth button, where the seventeenth interface displays a drop-down menu, and the drop-down menu displays the album that is not hidden.
The twelfth interface may be an interface shown in
Optionally, a display style of the third interface is consistent with a display style of the first interface, the third interface further displays a seventeenth button for switching a display manner of a photo in the hidden album, and the method further includes: When the hidden album satisfies a first view, the terminal device displays a sixth pop-up window in response to a thirty-first operation on the seventeenth button, where the sixth pop-up window displays a fourth option for switching to a second view. The terminal device displays the photo in the hidden album in the third interface in the second view in response to a thirty-second operation on the fourth option.
Descriptions are provided by using an example in which the third interface is the interface shown in
In a possible implementation, descriptions are provided by using an example in which the third interface is the interface shown in
The sixth pop-up window may be the menu pop-up window 502 of the hidden album in the interface shown in
The third interface may be a hidden album interface, and the first interface may be an ordinary album interface. For example, in the embodiment in
Optionally, when the first view is an album view, the second view is a photo view; or when the first view is the photo view, the second view is the album view.
The method provided in embodiments of this application is described above with reference to
As shown in
In a possible implementation, the apparatus 1900 for hiding the photo may further include a communication unit 1903. Specifically, the communication unit is configured to support the apparatus 1900 for hiding the photo in performing data sending and data receiving steps. The communication unit 1903 may be an input interface or an output interface, a pin, a circuit, or the like.
In a possible embodiment, the apparatus for hiding the photo may further include a storage unit 1904. The processing unit 1902 is connected to the storage unit 1904 through a line. The storage unit 1904 may include one or more memories, and the memory may be one or more devices or components in a circuit that are configured to store a program or data. The storage unit 1904 may exist independently, and is connected to, through a communication line, the processing unit 1902 disposed in the apparatus for hiding the photo. The storage unit 1904 may alternatively be integrated with the processing unit 1902.
The storage unit 1904 may store computer-executable instructions of the method in the terminal device, so that the processing unit 1902 performs the method in the foregoing embodiments. The storage unit 1904 may be a register, a cache, a RAM, or the like, and the storage unit 1904 may be integrated with the processing unit 1902. The storage unit 1904 may be a read-only memory (read-only memory, ROM) or another type of static storage device that may store static information and instructions, and the storage unit 1904 may be independent of the processing unit 1902.
The processor 2001 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more integrated circuits configured to control execution of a program in the solutions of this application.
The communication line 2004 may include a circuit configured to transmit information between the foregoing components.
The communication interface 2003 uses any apparatus of a transceiver type to communicate with another device or a communication network like an Ethernet, wireless local area networks (wireless local area networks, WLAN), and the like.
Possibly, the terminal device may further include a memory 2002.
The memory 2002 may be a read-only memory (read-only memory, ROM), another type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM), or another type of dynamic storage device that can store information and instructions, or may be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM) or a compact disc read-only memory (compact disc read-only memory, CD-ROM) or another compact disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, and Blu-ray discs), magnetic disk storage media, or another magnetic storage device, or any another medium that can be used to carry or store desired program code in the form of an instruction or a data structure and that can be accessed by a computer, but not limited thereto. The memory may exist independently, and is connected to the processor through the communication line 2004. The memory may be alternatively integrated with the processor.
The memory 2002 is configured to store computer-executable instructions for performing the solutions of this application, and is controlled and executed by the processor 2001. The processor 2001 is configured to execute the computer-executable instructions stored in the memory 2002 to implement the binaural pickup method provided in embodiments of this application.
Possibly, the computer-executable instructions in embodiments of this application may also be referred to as application code. This is not specifically limited in embodiments of this application.
During specific implementation, in an embodiment, the processor 2001 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
During specific implementation, in an embodiment, the terminal device may include a plurality of processors, for example, the processor 2001 and a processor 2005 in
In the foregoing embodiments, the instructions executed by the processor stored in the memory may be implemented in a form of a computer program product. The computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in a form of software.
The computer program product includes one or more computer instructions.
When the computer program instructions are loaded and executed on the computer, the procedure or functions according to embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by the computer, or a data storage device, such as a server or a data center, including one or more usable media. The usable medium may include a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a digital versatile disc (digital versatile disc, DVD)), a semi-conductive medium (for example, a solid state disk (solid state disk, SSD)), or the like.
An embodiment of this application further provides a computer-readable storage medium. All or some of methods in the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. The computer-readable medium may include a computer storage medium and a communication medium, and may further include any medium that can transmit a computer program from one place to another. The storage medium may be any target medium accessible to a computer.
In a possible design, the computer-readable storage medium may include a compact disc read-only memory (compact disc read-only memory, CD-ROM), a RAM, a ROM, an EEPROM, or another optical disc memory. The computer-readable medium may include a magnetic disk memory or another magnetic disk storage device. Any connection line may also be appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, a server or another remote source by using a coaxial cable, an optical fiber cable, a twisted pair, a DSL or wireless technologies (such as infrared ray, radio, and microwave), the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared ray, radio, and microwave are included in the definition of the medium. A magnetic disk and an optical disc used herein include an optical disc
(CD), a laser disc, an optical disc, a digital versatile disc (digital versatile disc, DVD), a floppy disk, and a blue ray disc, where the magnetic disk generally reproduces data in a magnetic manner, and the optical disc reproduces data optically by using laser.
The foregoing combination should also be included in the scope of the computer-readable medium. The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202210412488.3 | Apr 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/071683 | 1/10/2023 | WO |