Add a clearEmulation method.

This makes it clear that the Activity is being cleared and removes null as
a valid param. This improves readability (and logging slightly).

Fix spacing between [Tag] and message. This matches the rest of the log
messages.
This commit is contained in:
Mike Harris 2017-10-04 22:48:27 -07:00
parent 9fb0d9a664
commit bb3f61296e
2 changed files with 9 additions and 3 deletions

View File

@ -400,4 +400,10 @@ public final class NativeLibrary
Log.verbose("[NativeLibrary] Registering EmulationActivity.");
sEmulationActivity = emulationActivity;
}
public static void clearEmulationActivity()
{
Log.verbose("[NativeLibrary] Unregistering EmulationActivity.");
sEmulationActivity = null;
}
}

View File

@ -332,7 +332,7 @@ public final class EmulationActivity extends AppCompatActivity
super.onStop();
Log.debug("[EmulationActivity] EmulationActivity stopping.");
NativeLibrary.setEmulationActivity(null);
NativeLibrary.clearEmulationActivity();
}
@Override