Skip to content

Commit 7d60a3d

Browse files
committed
fix: delete setFullScreen
1 parent afdc261 commit 7d60a3d

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

android/src/main/java/com/instabug/flutter/modules/InstabugApi.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,7 @@ public void setTheme(@NonNull Map<String, Object> themeConfig) {
578578
}
579579
}
580580

581-
public void setFullscreen(@NonNull Boolean isEnabled) {
582-
try {
583-
Instabug.setFullscreen(isEnabled);
584-
} catch (Exception e) {
585-
e.printStackTrace();
586-
}
587-
}
581+
588582

589583
/**
590584
* Retrieves a color value from the Map.

android/src/test/java/com/instabug/flutter/InstabugApiTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -725,22 +725,5 @@ public void testSetThemeWithAllProperties() {
725725

726726
}
727727

728-
729-
@Test
730-
public void testSetFullscreenEnabled() {
731-
boolean isEnabled = true;
732-
733-
api.setFullscreen(isEnabled);
734-
735-
mInstabug.verify(() -> Instabug.setFullscreen(true));
736-
}
737728

738-
@Test
739-
public void testSetFullscreenDisabled() {
740-
boolean isEnabled = false;
741-
742-
api.setFullscreen(isEnabled);
743-
744-
mInstabug.verify(() -> Instabug.setFullscreen(false));
745-
}
746729
}

lib/src/modules/instabug.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,4 @@ class Instabug {
522522
static Future<void> setTheme(ThemeConfig themeConfig) async {
523523
return _host.setTheme(themeConfig.toMap());
524524
}
525-
526-
/// Enables or disables displaying in full-screen mode, hiding the status and navigation bars.
527-
/// This method is only available on Android platform.
528-
/// @param isEnabled A boolean to enable/disable setFullscreen.
529-
static Future<void> setFullscreen(bool isEnabled) async {
530-
if (Platform.isAndroid) {
531-
const MethodChannel channel = MethodChannel('instabug_flutter');
532-
await channel.invokeMethod('setFullscreen', {'isEnabled': isEnabled});
533-
}
534-
}
535525
}

0 commit comments

Comments
 (0)