main
Peanut_Ono 9 months ago
parent 40c5b2b9d9
commit 236ee55acc

@ -21,8 +21,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="0.1" > android:versionName="0.1" >
<uses-sdk android:minSdkVersion="14" <uses-sdk android:minSdkVersion="14" />
tools:ignore="GradleOverrides" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
@ -42,12 +41,6 @@
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/NoteTheme" > android:theme="@style/NoteTheme" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> </activity>
<activity <activity

@ -22,7 +22,6 @@ public class AppLockActivity extends Activity {
} }
}); });
} }
@Override @Override
public void onBackPressed() { public void onBackPressed() {
} }

@ -143,12 +143,12 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.note_list); setContentView(R.layout.note_list);
// TODO: appLock // TODO appLock
if(appLockOpen && openedFirst) { if(appLockOpen && openedFirst) {
openedFirst = false; openedFirst = false;
startActivity(new Intent(NotesListActivity.this, AppLockActivity.class)); startActivity(new Intent(NotesListActivity.this, AppLockActivity.class));
AlertDialog.Builder dialog = new AlertDialog.Builder(NotesListActivity.this); AlertDialog.Builder dialog = new AlertDialog.Builder(NotesListActivity.this);
dialog.setMessage("验证成功!").show(); dialog.setMessage(R.string.app_lock_identify_successed).show();
} }
initResources(); initResources();

@ -125,5 +125,6 @@
<string name="app_lock_context">请进行身份验证!</string> <string name="app_lock_context">请进行身份验证!</string>
<string name="app_lock_identify">认证</string> <string name="app_lock_identify">认证</string>
<string name="app_lock_identify_successed">验证成功!</string>
</resources> </resources>

@ -134,5 +134,6 @@
<string name="app_lock_context">Please authenticate!</string> <string name="app_lock_context">Please authenticate!</string>
<string name="app_lock_identify">Identify</string> <string name="app_lock_identify">Identify</string>
<string name="app_lock_identify_successed">Identify Success!</string>
</resources> </resources>

Loading…
Cancel
Save