Rename OsuLogin package to com.android.hotspot2.osulogin

Currently, it is "com.android.hotspot2", which is
too generic, as in the future we may add more
Passpoint-related apps. Rename the package name
to be more specific.

Bug: 149589553
Test: Connecting to an OSU network automatically
opens the OsuLogin activity

Change-Id: I115a4a70379a7e897c6f82dd4eef1ef50625a6ef
This commit is contained in:
David Su
2020-02-18 17:14:54 -08:00
parent 004e36da64
commit 121cfa79db
3 changed files with 6 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.hotspot2">
package="com.android.hotspot2.osulogin">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
@@ -28,7 +28,7 @@
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation|screenSize"
android:supportsRtl="true">
<activity android:name="com.android.hotspot2.osu.OsuLoginActivity"
<activity android:name="com.android.hotspot2.osulogin.OsuLoginActivity"
android:label="@string/action_bar_label"
android:theme="@style/AppTheme"
android:configChanges="keyboardHidden|orientation|screenSize">

View File

@@ -3,7 +3,7 @@
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.android.hotspot2.osu.OsuLoginActivity">
tools:context="com.android.hotspot2.osulogin.OsuLoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.hotspot2.osu;
package com.android.hotspot2.osulogin;
import static android.net.NetworkCapabilities.NET_CAPABILITY_TRUSTED;
@@ -42,8 +42,6 @@ import android.widget.Toast;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.android.hotspot2.R;
import java.net.MalformedURLException;
import java.net.URL;
@@ -194,7 +192,7 @@ public class OsuLoginActivity extends Activity {
// Check if the key event was the Back button.
if ((keyCode == KeyEvent.KEYCODE_BACK)) {
// If there is a history to move back
if (mWebView.canGoBack()){
if (mWebView.canGoBack()) {
mWebView.goBack();
return true;
}
@@ -278,6 +276,6 @@ public class OsuLoginActivity extends Activity {
mPageError = true;
Log.e(TAG, "onReceived Error for MainFrame: " + error.getErrorCode());
}
}
}
}
}