mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
AndroidManifest.xml: use flag android:showWhenLocked
to show activities in front of lock screen
Previously, it was setting `FLAG_SHOW_WHEN_LOCKED` in code.
This commit is contained in:
parent
abb468772d
commit
100fb5ab3a
4 changed files with 6 additions and 22 deletions
|
@ -116,8 +116,8 @@
|
|||
android:exported="true"
|
||||
android:configChanges="keyboard|keyboardHidden"
|
||||
android:label="@string/station_details_activity_title"
|
||||
android:taskAffinity="de.schildbach.oeffi.stations">
|
||||
</activity>
|
||||
android:taskAffinity="de.schildbach.oeffi.stations"
|
||||
android:showWhenLocked="true" />
|
||||
|
||||
<activity
|
||||
android:name=".stations.FavoriteStationsActivity"
|
||||
|
@ -196,7 +196,8 @@
|
|||
android:name=".directions.TripDetailsActivity"
|
||||
android:configChanges="keyboard|keyboardHidden"
|
||||
android:label="@string/trip_details_title"
|
||||
android:taskAffinity="de.schildbach.oeffi.directions" />
|
||||
android:taskAffinity="de.schildbach.oeffi.directions"
|
||||
android:showWhenLocked="true" />
|
||||
|
||||
<activity
|
||||
android:name=".directions.DirectionsShortcutActivity"
|
||||
|
@ -243,7 +244,8 @@
|
|||
android:configChanges="keyboard|keyboardHidden"
|
||||
android:launchMode="singleTop"
|
||||
android:taskAffinity="de.schildbach.oeffi.plans"
|
||||
android:theme="@style/My.Theme.Fullscreen">
|
||||
android:theme="@style/My.Theme.Fullscreen"
|
||||
android:showWhenLocked="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEARCH" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -44,7 +44,6 @@ import android.util.DisplayMetrics;
|
|||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.PopupMenu;
|
||||
|
@ -366,11 +365,6 @@ public class TripDetailsActivity extends OeffiActivity implements LocationListen
|
|||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttachedToWindow() {
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(final Configuration config) {
|
||||
super.onConfigurationChanged(config);
|
||||
|
|
|
@ -29,7 +29,6 @@ import android.os.Handler;
|
|||
import android.os.HandlerThread;
|
||||
import android.os.Process;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.view.animation.Animation;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.widget.PopupMenu;
|
||||
|
@ -255,11 +254,6 @@ public class PlanActivity extends ComponentActivity {
|
|||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttachedToWindow() {
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onSearchRequested() {
|
||||
if (!stations.isEmpty())
|
||||
|
|
|
@ -34,7 +34,6 @@ import android.text.format.DateUtils;
|
|||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.ViewAnimator;
|
||||
|
@ -258,11 +257,6 @@ public class StationDetailsActivity extends OeffiActivity implements StationsAwa
|
|||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttachedToWindow() {
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(final Configuration config) {
|
||||
super.onConfigurationChanged(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue