Skip to content

Commit 8798555

Browse files
committed
fix: delete setFullScreen
1 parent 4081f5b commit 8798555

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
@@ -558,13 +558,7 @@ public void setTheme(@NonNull Map<String, Object> themeConfig) {
558558
}
559559
}
560560

561-
public void setFullscreen(@NonNull Boolean isEnabled) {
562-
try {
563-
Instabug.setFullscreen(isEnabled);
564-
} catch (Exception e) {
565-
e.printStackTrace();
566-
}
567-
}
561+
568562

569563
/**
570564
* 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
@@ -713,22 +713,5 @@ public void testSetThemeWithAllProperties() {
713713

714714
}
715715

716-
717-
@Test
718-
public void testSetFullscreenEnabled() {
719-
boolean isEnabled = true;
720-
721-
api.setFullscreen(isEnabled);
722-
723-
mInstabug.verify(() -> Instabug.setFullscreen(true));
724-
}
725716

726-
@Test
727-
public void testSetFullscreenDisabled() {
728-
boolean isEnabled = false;
729-
730-
api.setFullscreen(isEnabled);
731-
732-
mInstabug.verify(() -> Instabug.setFullscreen(false));
733-
}
734717
}

lib/src/modules/instabug.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -511,14 +511,4 @@ class Instabug {
511511
static Future<void> setTheme(ThemeConfig themeConfig) async {
512512
return _host.setTheme(themeConfig.toMap());
513513
}
514-
515-
/// Enables or disables displaying in full-screen mode, hiding the status and navigation bars.
516-
/// This method is only available on Android platform.
517-
/// @param isEnabled A boolean to enable/disable setFullscreen.
518-
static Future<void> setFullscreen(bool isEnabled) async {
519-
if (Platform.isAndroid) {
520-
const MethodChannel channel = MethodChannel('instabug_flutter');
521-
await channel.invokeMethod('setFullscreen', {'isEnabled': isEnabled});
522-
}
523-
}
524514
}

0 commit comments

Comments
 (0)