mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
Settings: do not display debug stuff in production
This commit is contained in:
parent
01e9bc3310
commit
66d06cd76d
4 changed files with 13 additions and 1 deletions
|
|
@ -230,7 +230,7 @@
|
|||
<outlet property="delegate" destination="162" id="169"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
<view hidden="YES" contentMode="scaleToFill" id="ukG-i4-YMY" userLabel="numpadView">
|
||||
<view hidden="YES" alpha="0.79999999999999982" contentMode="scaleToFill" id="ukG-i4-YMY" userLabel="numpadView">
|
||||
<rect key="frame" x="0.0" y="75" width="375" height="428"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
|
|
@ -572,6 +572,7 @@
|
|||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<state key="disabled" image="footer_dialer_disabled.png"/>
|
||||
<state key="selected" image="dialer_alt_back_default.png"/>
|
||||
<state key="highlighted" backgroundImage="color_L.png"/>
|
||||
<connections>
|
||||
<action selector="onNumpadClick:" destination="-1" eventType="touchUpInside" id="pFD-jh-GhK"/>
|
||||
|
|
@ -626,6 +627,7 @@
|
|||
<image name="color_L.png" width="2" height="2"/>
|
||||
<image name="conference_start_default.png" width="33" height="33"/>
|
||||
<image name="conference_start_disabled.png" width="33" height="33"/>
|
||||
<image name="dialer_alt_back_default.png" width="26" height="26"/>
|
||||
<image name="footer_chat_default.png" width="27" height="27"/>
|
||||
<image name="footer_dialer_default.png" width="27" height="27"/>
|
||||
<image name="footer_dialer_disabled.png" width="27" height="27"/>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
@implementation UIIconButton
|
||||
|
||||
- (id)fixBackgroundImageForState {
|
||||
|
||||
[super setImage:[self imageForState:UIControlStateSelected]
|
||||
forState:(UIControlStateHighlighted | UIControlStateSelected)];
|
||||
[super setImage:[self imageForState:UIControlStateDisabled]
|
||||
forState:(UIControlStateDisabled | UIControlStateSelected)];
|
||||
|
||||
[self setBackgroundImage:[self backgroundImageForState:UIControlStateHighlighted]
|
||||
forState:(UIControlStateHighlighted | UIControlStateSelected)];
|
||||
[self setBackgroundImage:[self backgroundImageForState:UIControlStateDisabled]
|
||||
|
|
|
|||
|
|
@ -545,9 +545,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
[hiddenKeys addObject:@"debug_actions_group"];
|
||||
[hiddenKeys addObject:@"release_button"];
|
||||
[hiddenKeys addObject:@"clear_cache_button"];
|
||||
[hiddenKeys addObject:@"battery_alert_button"];
|
||||
[hiddenKeys addObject:@"enable_auto_answer_preference"];
|
||||
#endif
|
||||
|
||||
if (![[LinphoneManager instance] lpConfigBoolForKey:@"debugenable_preference"]) {
|
||||
|
|
|
|||
|
|
@ -145,6 +145,8 @@
|
|||
<dict>
|
||||
<key>Title</key>
|
||||
<string>Development debug actions</string>
|
||||
<key>Key</key>
|
||||
<string>debug_actions_group</string>
|
||||
<key>Type</key>
|
||||
<string>PSGroupSpecifier</string>
|
||||
</dict>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue