4444import com .osudroid .BuildSettings ;
4545import com .osudroid .beatmaps .BeatmapCache ;
4646import com .osudroid .debug .DebugPlaygroundScene ;
47+ import com .osudroid .resources .R ;
4748import com .osudroid .ui .FPSCounter ;
4849import com .osudroid .ui .v2 .GameLoaderScene ;
4950import com .osudroid .utils .Execution ;
9798import ru .nsu .ccfit .zuev .osu .menu .SplashScene ;
9899import ru .nsu .ccfit .zuev .osu .online .OnlineManager ;
99100import ru .nsu .ccfit .zuev .osuplus .BuildConfig ;
100- import ru .nsu .ccfit .zuev .osuplus .R ;
101101
102102public class MainActivity extends BaseGameActivity implements
103103 IAccelerometerListener {
@@ -189,7 +189,7 @@ null, new RatioResolutionPolicy(
189189
190190 if (!MultiTouch .isSupported (this )) {
191191 // Warning player that they will have to single tap forever.
192- ToastLogger .showText (StringTable .get (com . osudroid . resources . R .string .message_info_multitouch ), false );
192+ ToastLogger .showText (StringTable .get (R .string .message_info_multitouch ), false );
193193 }
194194 engine .setTouchController (new MultiTouchController ());
195195
@@ -207,7 +207,7 @@ private void initialGameDirectory() {
207207 dir = new File (Config .getBeatmapPath ());
208208 if (!(dir .exists () || dir .mkdirs ())) {
209209 ToastLogger .showText (StringTable .format (
210- com . osudroid . resources . R .string .message_error_createdir , dir .getPath ()),
210+ R .string .message_error_createdir , dir .getPath ()),
211211 true );
212212 } else {
213213 final SharedPreferences prefs = PreferenceManager
@@ -386,7 +386,7 @@ private void availableInternalMemory() {
386386 File internal = Environment .getDataDirectory ();
387387 StatFs stat = new StatFs (internal .getPath ());
388388 availableMemory = (double ) stat .getAvailableBytes ();
389- String toastMessage = String .format (StringTable .get (com . osudroid . resources . R .string .message_low_storage_space ), df .format (availableMemory / minMem ));
389+ String toastMessage = String .format (StringTable .get (R .string .message_low_storage_space ), df .format (availableMemory / minMem ));
390390 if (availableMemory < 0.5 * minMem ) { //I set 512MiB as a minimum
391391 Execution .mainThread (() -> Toast .makeText (this , toastMessage , Toast .LENGTH_LONG ).show ());
392392 }
@@ -431,7 +431,7 @@ public void loadBeatmapLibrary() {
431431 File file = new File (fileToAdd );
432432 if (file .getName ().toLowerCase ().endsWith (".osz" )) {
433433 ToastLogger .showText (
434- StringTable .get (com . osudroid . resources . R .string .library_importing ),
434+ StringTable .get (R .string .library_importing ),
435435 false );
436436
437437 FileUtils .extractBeatmapset (fileToAdd , Config .getBeatmapPath ());
@@ -497,7 +497,7 @@ public void loadBeatmapLibrary() {
497497 // final boolean deleteOsz = Config.isDELETE_OSZ();
498498 // Config.setDELETE_OSZ(true);
499499 ToastLogger .showText (StringTable .format (
500- com . osudroid . resources . R .string .library_importing_several ,
500+ R .string .library_importing_several ,
501501 beatmaps .size ()), false );
502502 for (final String beatmap : beatmaps ) {
503503 FileUtils .extractBeatmapset (beatmap , Config .getBeatmapPath ());
@@ -553,15 +553,15 @@ public void checkNewSkins() {
553553
554554 if (skins .size () > 0 ) {
555555 ToastLogger .showText (StringTable .format (
556- com . osudroid . resources . R .string .library_skin_importing_several ,
556+ R .string .library_skin_importing_several ,
557557 skins .size ()), false );
558558
559559 for (final String skin : skins ) {
560560 if (FileUtils .extractZip (skin , Config .getSkinTopPath ())) {
561561 String folderName = skin .substring (0 , skin .length () - 4 );
562562 // We have imported the skin!
563563 ToastLogger .showText (
564- StringTable .format (com . osudroid . resources . R .string .library_imported , folderName ),
564+ StringTable .format (R .string .library_imported , folderName ),
565565 true );
566566 Config .addSkin (folderName .substring (folderName .lastIndexOf ("/" ) + 1 ), skin );
567567 }
@@ -1121,7 +1121,7 @@ private boolean checkPermissions() {
11211121 } else {
11221122 Intent grantPermission = new Intent (this , PermissionActivity .class );
11231123 startActivity (grantPermission );
1124- overridePendingTransition (R .anim .fast_activity_swap , R .anim .fast_activity_swap );
1124+ overridePendingTransition (ru . nsu . ccfit . zuev . osuplus . R .anim .fast_activity_swap , ru . nsu . ccfit . zuev . osuplus . R .anim .fast_activity_swap );
11251125 finish ();
11261126 return false ;
11271127 }
@@ -1133,7 +1133,7 @@ private void showMultiModeWindowAlert() {
11331133 .setTitle (getString (R .string .multi_mode_window_alert_title ))
11341134 .setMessage (getString (R .string .multi_mode_window_alert_message ))
11351135 .setAllowDismiss (false )
1136- .addButton (getString (com . osudroid . resources . R .string .accessibility_detector_exit ), (d ) -> {
1136+ .addButton (getString (R .string .accessibility_detector_exit ), (d ) -> {
11371137 finish ();
11381138 return null ;
11391139 });
0 commit comments